Skip to content
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

Unable to access event to stop propagation #313

Open
minedun6 opened this issue Oct 14, 2024 · 1 comment
Open

Unable to access event to stop propagation #313

minedun6 opened this issue Oct 14, 2024 · 1 comment

Comments

@minedun6
Copy link

I have a clickable row which contains a menu with the command as presented in the screenshot below.
Screenshot from 2024-10-14 16-51-28

The problem is that I'm trying to stop the command event from bubbeling up to the row.
But I can't seem to find any documentation which can help with the following.
Can I get some help please :)

Have a nice day !

@minedun6 minedun6 changed the title Unable to access to event to stop propagation Unable to access event to stop propagation Oct 14, 2024
@smhayhan
Copy link

smhayhan commented Nov 6, 2024

you can stop propagation on onMouseDown event.

onMouseDown={e => {
  e.preventDefault()
  e.stopPropagation()
}}

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