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

[EuiComboBox] Prevent keyboard actions when disabled #5373

Merged
merged 4 commits into from
Nov 17, 2021

Conversation

thompsongl
Copy link
Contributor

@thompsongl thompsongl commented Nov 11, 2021

Summary

Fixes #5342, in which is was reported that it was possible to remove selected options with the keyboard when the component was disabled. It turns out that all keyboard actions were still possible, so this goes further to prevent any keyboard selection actions from occurring when disabled.

Checklist

- [ ] Check against all themes for compatibility in both light and dark modes
- [ ] Checked in mobile
- [ ] Checked in Chrome, Safari, Edge, and Firefox
- [ ] Props have proper autodocs and playground toggles
- [ ] Added documentation
- [ ] Checked Code Sandbox works for any docs examples
- [ ] Added or updated jest and cypress 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
Copy link
Contributor Author

jenkins test this

@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_5373/

Copy link
Contributor

@cchaos cchaos left a comment

Choose a reason for hiding this comment

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

👍 LGTM.

CHANGELOG.md Outdated Show resolved Hide resolved
Copy link
Member

@cee-chen cee-chen left a comment

Choose a reason for hiding this comment

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

Looks great!

thompsongl and others added 2 commits November 17, 2021 11:16
Co-authored-by: Caroline Horn <549577+cchaos@users.noreply.github.com>
@thompsongl thompsongl enabled auto-merge (squash) November 17, 2021 17:17
@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_5373/

@thompsongl thompsongl merged commit bba6890 into elastic:main Nov 17, 2021
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.

EuiComboBox clears value when disabled
4 participants