From 8d5a88cc917fcc221c6ba144d58ff514ad89600a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Thu, 3 Aug 2023 15:43:09 +0300 Subject: [PATCH] Fixed #4237 - Dialog: unstyled mode pointer-event defects --- components/lib/dialog/BaseDialog.vue | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/components/lib/dialog/BaseDialog.vue b/components/lib/dialog/BaseDialog.vue index 8c4c45a6e..c6b977115 100644 --- a/components/lib/dialog/BaseDialog.vue +++ b/components/lib/dialog/BaseDialog.vue @@ -3,16 +3,11 @@ import BaseComponent from 'primevue/basecomponent'; import { useStyle } from 'primevue/usestyle'; const styles = ` -.p-dialog-mask { - pointer-events: none; -} - .p-dialog-mask.p-component-overlay { pointer-events: auto; } .p-dialog { - pointer-events: auto; max-height: 90%; transform: scale(1); } @@ -152,11 +147,12 @@ const inlineStyles = { display: 'flex', justifyContent: position === 'left' || position === 'topleft' || position === 'bottomleft' ? 'flex-start' : position === 'right' || position === 'topright' || position === 'bottomright' ? 'flex-end' : 'center', alignItems: position === 'top' || position === 'topleft' || position === 'topright' ? 'flex-start' : position === 'bottom' || position === 'bottomleft' || position === 'bottomright' ? 'flex-end' : 'center', - pointerEvents: !modal && 'none' + pointerEvents: modal ? 'auto' : 'none' }), root: { display: 'flex', - flexDirection: 'column' + flexDirection: 'column', + pointerEvents: 'auto' } };