Repository navigation
|
Hi everyone, after updating from @dnd-kit/react v0.1.21 to v0.2.0, I noticed a change in drag behavior. The problem is that dragging no longer works when the draggable element contains a In v0.1.21 this worked without any issues. Now, if I click and drag directly on the button inside the draggable item, the drag never starts anymore. I have the feeling this is related to the switch to PointerActivationConstraints in v0.2.0. Is this intended behavior? Is there a recommended way to restore the old behavior from v0.1.21? |
Replies: 1 comment 1 reply
|
This is intended behavior yes. The default You can easily override this by configuring the |
This is intended behavior yes. The default
preventActivationprevents activation when the pointer target is an interactive element (input, select, textarea, button, link, or contenteditable) that is not the source element or handle.You can easily override this by configuring the
PointerSensorviaPointerSensor.configure({preventActivation: () => false}).