[Webkit-unassigned] [Bug 199485] Single selection <select> with <optgroups> shows multiple selected options

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat May 16 18:01:03 PDT 2020


https://bugs.webkit.org/show_bug.cgi?id=199485

Wenson Hsieh <wenson_hsieh at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|webkit-unassigned at lists.web |wenson_hsieh at apple.com
                   |kit.org                     |

--- Comment #3 from Wenson Hsieh <wenson_hsieh at apple.com> ---
This happens because -pickerView:row:column:checked: is not invoked for non-visible picker items, so if an item is checked, is scrolled offscreen, and then another item is checked, we will never update the content view’s FocusedElementInformation to reflect the fact that the previously checked item should now be unchecked.

This is pretty simple to fix — we just need to change the `item.isSelected = false;` line in -pickerView:row:column:checked: (in WKFormSelectPicker.mm) to uncheck whatever item was previously checked.

…writing a test for this is going to require some finagling, though :|

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200517/705a347e/attachment-0001.htm>


More information about the webkit-unassigned mailing list