Open Arjanno opened 1 year ago
@Arjanno
It is not blocking the click, but blocking the drag.
In the dragStart event, if the target is a button, call stop().
onDragStart={e => {
if (e.inputEvent.target.tagName === "BUTTON") {
e.stop();
}
}}
Awesome! That solved my problem.
Environments
Description
I have draggable elements that also contain buttons. Currently Selecto intercepts all mouse-clicks. Is there a way to have a higher zIndex or something like the checkinput hack to solve that the buttons have higher priority as Selecto?