-
Notifications
You must be signed in to change notification settings - Fork 359
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
Editable Combobox With List Autocomplete: Remove "onBlur" events. #1699
Conversation
68d2a9a
to
733c67f
Compare
fixed merge conflicts! |
I've tested the preview with VoiceOver on an iPhone SE with iOS 14.2 without issues 👍 |
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.
@mcking65
I made a small change to also include testing the button in the new mousedown
event. and pushed the change to the branch Otherwise the coding changes to not use the blur
event look good to me.
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.
+1
Looks good, @spectranaut - thanks!
this.comboboxNode.addEventListener('blur', this.onComboboxBlur.bind(this)); | ||
|
||
document.body.addEventListener( | ||
'mouseup', |
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.
One note, mouseup fire when dragging the body's scrollbar, blur doesn't.
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.
Is there another issue to resolve here? Does that mean that scrolling the page unexpectedly closes the dropdown? As a screen reader user, I can't test this, so I'm not quite clear on what the problem is.
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.
I was raising a potential regression (not sure about the importance of it) on the UX for mouse users. I'm not aware of any impact on screen readers.
I can't reproduce the issue on https://raw.githack.com/w3c/aria-practices/combobox-VOMac-fix/examples/combobox/combobox-autocomplete-list.html.
@jongund @smhigley @carmacleod Could one of you investigate to see if we have a regression here? |
@mcking65 Jon |
Adding the change request in this comment: #1619 (comment)
In summary:
tab
, this is already supportedPreview