Skip to content

onDrag is triggered when clicking the <div> #2136

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
rizhaoyuanshan opened this issue Apr 10, 2025 · 1 comment
Open

onDrag is triggered when clicking the <div> #2136

rizhaoyuanshan opened this issue Apr 10, 2025 · 1 comment

Comments

@rizhaoyuanshan
Copy link

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

  1. click the div
  2. 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

@daffaharizal
Copy link

hi @rizhaoyuanshan, i also experienced the same thing, for the time being you can use to overcome this problem. for example when there is a select component, input, or anything that requires a click in it, hopefully it helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants