-
Notifications
You must be signed in to change notification settings - Fork 841
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
Avoid mutating EuiFieldPassword's append prop when in dual mode #3884
Avoid mutating EuiFieldPassword's append prop when in dual mode #3884
Conversation
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
Thanks for tests!
jenkins test this |
Preview documentation changes for this PR: https://eui.elastic.co/pr_3884/ |
Preview documentation changes for this PR: https://eui.elastic.co/pr_3884/ |
jenkins test this |
Preview documentation changes for this PR: https://eui.elastic.co/pr_3884/ |
Preview documentation changes for this PR: https://eui.elastic.co/pr_3884/ |
* Avoid mutating EuiFieldPassword's append prop when in dual mode * changelog
Summary
Fixes #3883
Creates a new
appends
array to add the visibility-toggle icon onto, instead of mutating the input array. Added a test which fails - in two ways - without the fix.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- [ ] Added documentation- [ ] Checked for accessibility including keyboard-only and screenreader modes