-
Notifications
You must be signed in to change notification settings - Fork 843
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
[EuiSelect] allow select's value to be reset with an undefined value #4428
[EuiSelect] allow select's value to be reset with an undefined value #4428
Conversation
Preview documentation changes for this PR: https://eui.elastic.co/pr_4428/ |
Co-authored-by: Caroline Horn <549577+cchaos@users.noreply.github.com>
Preview documentation changes for this PR: https://eui.elastic.co/pr_4428/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM; tested locally by adding a method to set the value to undefined
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Preview documentation changes for this PR: https://eui.elastic.co/pr_4428/ |
Preview documentation changes for this PR: https://eui.elastic.co/pr_4428/ |
Summary
Closes #4427 by adding logic for EuiSelect[hasNoInitialSelection] to reset to its hidden empty option if it receives a
value={undefined}
.Checklist
- [ ] Check against all themes for compatibility in both light and dark modes- [ ] Checked in mobile- [ ] Props have proper autodocs- [ ] Added documentation- [ ] Checked for accessibility including keyboard-only and screenreader modes