How to prevent drag events to be triggered when an element is put above #606
Unanswered
QuentinGab
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
-
Hi,
First of all, this package is awesome!
Stack:
I'm kind of stuck with a situation where I can't understand how events are triggered and how to prevent them to be triggered.
I have 2 components:
position: fixed
. This component is a portal, so the node is not a child of the Calendar component. (However the react Component is called inside the Calendar)However dragging and clicking inside the Dialog still trigger the drag event on the Calendar, even if the DOM looks like that:
The following video show the problem:
Enregistrement.de.l.ecran.2023-06-12.a.19.04.10.mov
The only solution I can think of now, is checking if
currentTarget
containstarget
on theevent
withuseDrag
.Maybe I'm missing something in the doc/config/event management but I've tested many option with no success
Beta Was this translation helpful? Give feedback.
All reactions