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

Use requestAnimationFrame on EuiComboBox singleSelection close #2326

Merged
merged 4 commits into from
Sep 11, 2019

Conversation

thompsongl
Copy link
Contributor

@thompsongl thompsongl commented Sep 10, 2019

Summary

Closes #2303, which is an IE11 bug caused by a focus event and setState mistiming. IE11 needs a tick between calling focus() and setState so that the latter always happens second and prevents re-opening of the list.

Checklist

- [ ] Checked in dark mode
- [ ] Checked in mobile

  • Checked in IE11 and Firefox

- [ ] Props have proper autodocs
- [ ] Added documentation examples
- [ ] Added or updated jest tests
- [ ] Checked for breaking changes and labeled appropriately
- [ ] Checked for accessibility including keyboard-only and screenreader modes

  • A changelog entry exists and is marked appropriately

@thompsongl thompsongl changed the title Use setTimeout on EuiComboBox singleSelection close Use requestAnimationFrame on EuiComboBox singleSelection close Sep 11, 2019
@thompsongl thompsongl requested a review from snide September 11, 2019 18:04
Copy link
Contributor

@snide snide left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested this locally over VM. Seems to do the trick.

@thompsongl thompsongl merged commit a546820 into elastic:master Sep 11, 2019
@thompsongl thompsongl deleted the 2303-combobox-close branch September 11, 2019 19:14
@cchaos cchaos mentioned this pull request Sep 11, 2019
5 tasks
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.

[IE11] EuiComboBox doesn't close with selection
2 participants