Enable onBackdropClick with Draggable & Material UI Dialog #641
Unanswered
tornadicshark
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, any ideas on how to re-enable the onBackdropClick and/or the escape key listener with the Draggable component being used? I am a bit lost on how to continue this approach.
Added an example...
https://codepen.io/tornadicshark/pen/QWaLNGg?editors=0011
Edit: It does work if you drag the component enough... so it appears to be using the overlay of the backdrop too (even though it is not selected) as a part of the draggable element. Good starting basis if no one in this community is sure. I'll report back if I figure it out. :)
Beta Was this translation helpful? Give feedback.
All reactions