How to disable drag on a nested element #426
Unanswered
federico-bellucci
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
-
I'm creating a draggable modal and I'd like to make only the header draggable.
I've achieved it by canceling the drag event on nested elements:
The problem is that the dragstart handler is still executed and interfering with other mouse handlers.
Specifically, I have an
input type="search"
element and clicking the smallx
icon to clear the input (as seen on Chrome) won't work.What's the best way to make only the modal header draggable?
Edit
Using the
filterTaps
option prevents theonDragStart
handler from being called on input clear click, but the clearing still won't work.Beta Was this translation helpful? Give feedback.
All reactions