This repository has been archived by the owner on Jan 5, 2023. It is now read-only.
Is there a way Remove or Overwrite a Modal event handler? #516
Answered
by
mayank99
mathieu-fournier
asked this question in
Q&A
-
Hi o/, Is there a way to remove/overwrite this event handler found in Modal.tsx ? Stoppping the event propagation prevents from starting a Selection Area. Thanks (: |
Beta Was this translation helpful? Give feedback.
Answered by
mayank99
Jan 19, 2022
Replies: 1 comment 5 replies
-
Hi @mathieu-fournier 👋 Could you produce a sandbox showing how you're using the selectionArea in Modal? That handler is meant to stop propagating clicks into the backdrop (parent) which has its own handler for closing the modal. If the selectionArea is inside the modal, it shouldn't be a problem. |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
mathieu-fournier
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @mathieu-fournier 👋
Could you produce a sandbox showing how you're using the selectionArea in Modal? That handler is meant to stop propagating clicks into the backdrop (parent) which has its own handler for closing the modal. If the selectionArea is inside the modal, it shouldn't be a problem.