-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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
[SelectInput] Only attach click handler to label if a labelId is passed #30239
[SelectInput] Only attach click handler to label if a labelId is passed #30239
Conversation
Bundle size will be reported once CircleCI build #329146 finishes. |
Hi @johsunds, sorry for the delayed response. Would you mind creating before/after sandboxes to help test the changes? You can use this sandbox to build a version with your changes included. Also, a unit test to verify the implemented behavior would be needed. |
Hi @michaldudak, thanks for the response. Here are the before/after sandboxes. I will add a unit test later, when I have time. |
I think you need to update the branch (e.g. by rebasing). |
b2600ee
to
7b94d37
Compare
👋 The migration PR has been merged. Please follow these steps to make sure that the contents are all updated. (Sorry for the inconvenience)
If you are struggle with the steps above, feel free to tag @siriwatknp |
…fix-select-label-click-handler
Spent the last couple of hours trying to figure out why my select input was getting focused when I clicked another completely unrelated element. Turns out, there was an element with
id="undefined"
for some reason, which caused theSelectInput
to add this click listener to it since it calls.getElementById(undefined)
.A rare error I suppose, but it couldn't hurt to fix it here 😄