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

Bug: Select component doesn't stop event propagation when selecting an option in mobile/tablet device #964

Open
N1ckzz opened this issue Jan 17, 2025 · 0 comments
Labels
bug Something isn't working triage-needed

Comments

@N1ckzz
Copy link

N1ckzz commented Jan 17, 2025

Description of the bug

As mentioned in the title of this issue, we are facing a problem since in our case we are using a select that right below has a date picker and the problem is accentuated by this situation (you can see a similar example in the playroom) and since the propagation of the event is not stopped after selecting an option the date picket open and sometimes even the select option menu stays open.

This problem seems related to the usage of the react-select package with the portal implementation for the option, as suggested here this might be also a possible solution to the problem.

Playroom reproduction

To reproduce:

  • go to this playroom repro
  • click in the select to open it
  • select an option that is over the datePicker icon to the right

The issue happens only if the select detects the device as mobile or tablet, the width of the screen doesn't metter, only the user agent.
If you try the repro in a laptop using google chrome ensure to use the developer tool to fake a real mobile/table device user agent.

Give a look also at the video linked below here.

Version

latest

What browsers are you seeing the problem on?

No response

@N1ckzz N1ckzz added bug Something isn't working triage-needed labels Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage-needed
Projects
None yet
Development

No branches or pull requests

1 participant