gridstack.js: _mouseDown method causing issue with child elements receiving event
Subject of the issue
An SPAN inside the .grid-stack-item element had a mouseDown event attached, however that was intercepted by the _mouseDown method.
Solution
I ended up adding span to the skipMouseDown array.
const skipMouseDown = ['input', 'textarea', 'button', 'select', 'option', 'span'];
Hope this helps!
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 21 (10 by maintainers)
I think there is a misunderstood. Suggested “skipMouseDownEls” option is in addition to “skipMouseDown” parameter.
You keep the following part:
You only change this part:
In that way, you let to users the possibility to skip elements without changing the core behaviour. So, this is not a workaround in my opinion.
Hope this will help you in your analysis.
PS: I understand very well when you say “I would like the fix it the right way”