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

Safari > Dropdowns won't close on second button click #1142

Closed
chris-cedrone-cengage opened this issue Oct 4, 2023 · 1 comment · Fixed by #1460
Closed

Safari > Dropdowns won't close on second button click #1142

chris-cedrone-cengage opened this issue Oct 4, 2023 · 1 comment · Fixed by #1460
Assignees
Labels
bug Something isn't working

Comments

@chris-cedrone-cengage
Copy link
Collaborator

chris-cedrone-cengage commented Oct 4, 2023

Describe the bug
Safari doesn't close a Dropdown when using the Dropdown button. It remains on the screen after a second button click.

To Reproduce
Steps to reproduce the behavior:

  1. In Safari, go to the doc site.
  2. Go to Dropdown.
  3. Click on any Dropdown button to open a Dropdown, then click again to close.
  4. Notice that the Dropdown remains open on the second click.

Expected behavior
When a Dropdown button click opens a Dropdown, that same button should close the Dropdown when clicked again.

Desktop (please complete the following information):

  • OS: Mac OS Ventura
  • Safari
  • Version 16

Notes

  • Is there anything we can do about this? Any work arounds? Or do we just have to live with this?
@silvalaura
Copy link
Collaborator

This comment describes the problem: downshift-js/downshift#443 (comment)

The problem seems to be that Safari on iOS triggers a blur event before the onClick event

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Ready for QA
Development

Successfully merging a pull request may close this issue.

4 participants