Dialog | Is it possible to disable 'click outside' ? #3011
Unanswered
chrisbuttery
asked this question in
Help
Replies: 1 comment
-
Should you try bypassing the trick 'pointer-events: none' on 'Dialog.Overlay' when the CancelConfirmationModal component is showing? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm looking to render a Dialog wrapped around a formik form.
If the form is considered
dirty
ortouched
and the user has clicked outside, I'd like to display a 'cancel confirmation' modal.I'm wondering how I could possibly disable the 'click outside' for the initial dialog? It seems that click events for the secondary Dialog are considered 'outside' the primary Dialog.
I'd love to know if someone has got something like this working.
If not, Im wondering if its a possibility that we let
Dialog.Content
accept the property 'disableOutsidePointerEvents' - as that 'sounds' like something helpful to use.For example:
Beta Was this translation helpful? Give feedback.
All reactions