Skip to content

Conversation

@sbaechler
Copy link

This can happen on iOS. If the select is opened a blur event is fired immediately.

What:
This patch fixes a bug where the select would immediately close again on iOS Safari.

Possible fix for #443.

Why:

Safari on iOS could trigger a blur event immediately after the dropdown was opened.

How:

There is now a check that verifies that when an input blur event is received, the active element is not inside the menu since this would close the menu.

Checklist:

  • Documentation N/A
  • Tests
  • TypeScript Types N/A
  • Flow Types N/A
  • Ready to be merged

We originally patched this locally in version 6 and this has been in production for years together with the changes for #1647.

This can happen on iOS. If the select is opened a blur event is fired immediately.

Possibly fixes downshift-js#443.
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

Successfully merging this pull request may close these issues.

1 participant