react-grid-layout
react-grid-layout copied to clipboard
onDrag is triggered when clicking the <div>
Describe the bug
onDrag is triggered when clicking the
,the div is flashing
Your Example Website or App
https://codesandbox.io/p/sandbox/late-lake-lkfrqy?file=%2Fsrc%2Findex.js%3A59%2C25
Steps to Reproduce the Bug or Issue
- click the div
- drag is triggered
Expected behavior
.
react-grid-layout library version
1.5.1
Operating System Version
macOS
Browser
Chrome
Additional context
No response
Screenshots or Videos
No response
hi @rizhaoyuanshan, i also experienced the same thing, for the time being you can use <Select className="noDrag" /> to overcome this problem. for example when there is a select component, input, or anything that requires a click in it, hopefully it helps.
hello @rizhaoyuanshan, were u able to overcome this?