Why do we stop the propagation on ModalContent
?
#7263
Unanswered
baptisteArno
asked this question in
General
Replies: 1 comment
-
Any idea @segunadebayo ? Sorry to tag you, but it's a change you authored 2 years ago. I'm willing to create a PR if it is not relevant anymore. |
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
-
Currently, the
ModalContent
click event is stopping the event propagation:https://github.com/chakra-ui/chakra-ui/blob/main/packages/components/modal/src/use-modal.ts#L125
It clashes with my very specific use-case: embedding a SolidJS component in a Chakra UI Modal (solidjs/solid#1484)
I've tried to remove this handler and everything work just fine.
This event handler (introduced while implementing framer-motion into Chakra UI) is obviously here for a reason. May I know what?
Beta Was this translation helpful? Give feedback.
All reactions