Bug 184110 - [iOS] Multiple select appearance doesn't update when selecting or deselecting rows in the picker view
Summary: [iOS] Multiple select appearance doesn't update when selecting or deselecting...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Forms (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Wenson Hsieh
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-03-28 13:17 PDT by Wenson Hsieh
Modified: 2018-03-28 15:03 PDT (History)
8 users (show)

See Also:


Attachments
Patch (6.33 KB, patch)
2018-03-28 13:37 PDT, Wenson Hsieh
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Wenson Hsieh 2018-03-28 13:17:07 PDT
<rdar://problem/38796648>
Comment 1 Wenson Hsieh 2018-03-28 13:22:21 PDT
To reproduce:

1. Tap on a multiple select element
2. Pick a few rows, but don't hit Done

Expected: the title of the select should reflect the current state of the options
Observed: the title of the select is whatever it was prior to focusing the node

Some additional notes:
- As far as I know, the WK2 implementation has always been this way
- When a row is selected using the picker UI, the corresponding option element is actually updated in the DOM (asking for option.selected will return the updated value)
- However, the appearance of the select element itself doesn't update until the node is blurred
- Alternately, programmatic changes to the selected attribute of the select's options also trigger appearance updates
Comment 2 Wenson Hsieh 2018-03-28 13:37:50 PDT
Created attachment 336710 [details]
Patch
Comment 3 WebKit Commit Bot 2018-03-28 15:03:09 PDT
Comment on attachment 336710 [details]
Patch

Clearing flags on attachment: 336710

Committed r230055: <https://trac.webkit.org/changeset/230055>
Comment 4 WebKit Commit Bot 2018-03-28 15:03:11 PDT
All reviewed patches have been landed.  Closing bug.