Platform: Windows/Chrome (maybe others)
(part of functional review for PR https://github.com/w3c/aria-practices/pull/1255)
Steps:
The list appears and takes focus, but then it immediately loses focus and disappears because focus has been moved to the combobox text input. This looks very strange.
Same problem in other combobox examples that have the dropdown button:
Just wondering
In the table under the ‘Text’ heading with role combobox, the attribute column that includes aria-haspopup is set to “true”. Because this example pops up a listbox, should this not be aria-haspopup=“listbox”?
According to the specification;
’The value of aria-haspopup matches the role of the popup container. ‘
and
’To provide backward compatibility with ARIA 1.0 content, user agents MUST treat an aria-haspopup value of true as equivalent to a value of menu.’
Oooh - good catch, @LaurenceRLewis !
That bug is not only in the example writeup, I see it in the example code as well.
The spec also says:
Elements with the role combobox have an implicit aria-haspopup value of listbox.
so maybe the cleanest fix is to delete aria-haspopup from any combobox example that has a listbox popup. Thanks!
The popup is behaving pretty strangely. It seems like it sometimes gets into a bad state where clicking the button opens and immediately closes again. Also the popup closes after "mouseout", which is annoying.
Platform: Windows/Chrome (maybe others)
In Windows: The problem also occurs with IE 11 and Firefox.
@@LaurenceRLewis wrote:
In the table under the ‘Text’ heading with role combobox, the attribute column that includes aria-haspopup is set to “true”. Because this example pops up a listbox, should this not be aria-haspopup=“listbox”?
According to the specification;
’The value of aria-haspopup matches the role of the popup container. ‘and
’To provide backward compatibility with ARIA 1.0 content, user agents MUST treat an aria-haspopup value of true as equivalent to a value of menu.’
Removed unnecessary aria-haspopup declarations and supporting documentation with commit e51ad04.
I retested steps 2, 3, and 4 (above) using the examples in PR https://github.com/w3c/aria-practices/pull/1276:
This problem will be fixed after PR https://github.com/w3c/aria-practices/pull/1276 is merged.
Thank you @carmacleod, linking to #1276.
Most helpful comment
The popup is behaving pretty strangely. It seems like it sometimes gets into a bad state where clicking the button opens and immediately closes again. Also the popup closes after "mouseout", which is annoying.