Partial fix for selecting SELECT elements #2338
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This issue has been reported and verified in #2257 and #2287, and was introduced with Chrome v53.
It's been noted in #2257 that calling
focus()
on theselect
element could do the trick, and indeed it does. It doesn't expand theselect
as it used to be, but at least it's focused.The fix treats the
select
elements the same asinput
elements, and simply focus on them.I've also updated the test to verify the focus on the element.
I've been using this fix for a few days now, since I couldn't go by without hitting selects any more. Hope it helps!