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

Event click is blocked when dropdown open #4443

Open
minhtien17495 opened this issue Nov 10, 2023 · 3 comments
Open

Event click is blocked when dropdown open #4443

minhtien17495 opened this issue Nov 10, 2023 · 3 comments

Comments

@minhtien17495
Copy link

minhtien17495 commented Nov 10, 2023

Bug Report

Steps

  1. Create list item , per item have a dropdown and a button
  2. Click last dropdown
  3. Scroll down bottom
  4. Click the button => don't fire event

Expected Result

Event button work

Actual Result

Menu is closed and event button don't work
Link my code https://codesandbox.io/s/competent-yonath-jm6n5t?file=/src/index.js
Screenshot 2023-11-11 at 00 00 59

Version

2.1.4

Testcase

Copy link

welcome bot commented Nov 10, 2023

👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you've completed all the fields in the issue template so we can best help.

We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

@tourman
Copy link
Contributor

tourman commented Nov 28, 2023

@minhtien17495 please see the spec that presumes that the click event will happen only if the mouse button is released on the same element. This is not a SUIR-specific bug. This is how you've made your app.

@minhtien17495
Copy link
Author

@tourman Thank your help . I have changed my UX . The dropdown menu will automatically upward if the dropdown is located at the bottom.

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