-
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
[EuiSuperSelect] Fix regenerating and missing IDs #5197
[EuiSuperSelect] Fix regenerating and missing IDs #5197
Conversation
- falls back to a generated ID if passed ID is 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.
LGTM!
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.
QA
@@ -108,7 +108,7 @@ export const EuiSuperSelectControl: <T extends string>( | |||
side: 'right', | |||
}; | |||
|
|||
const screenReaderId = htmlIdGenerator()(); | |||
const screenReaderId = useGeneratedHtmlId(); |
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.
Hahaha sorry, you're too fast! I was still slowly writing up my comments 😂 🐢 |
My apologies, I should have taken a pause before approving. I took a second look after I saw your comment and responded in kind. |
Preview documentation changes for this PR: https://eui.elastic.co/pr_5197/ |
Preview documentation changes for this PR: https://eui.elastic.co/pr_5197/ |
Summary
undefined
Related parent PR:
Checklist
N/A, internal/tech debt only - changelog will be in parent #5195 PR