Bug 223592

Summary: [iPadOS] Stale checked item when reopening <select>
Product: WebKit Reporter: Aditya Keerthi <akeerthi>
Component: FormsAssignee: Aditya Keerthi <akeerthi>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, thorton, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
wenson_hsieh: review+
Patch for landing none

Description Aditya Keerthi 2021-03-22 12:31:25 PDT
...
Comment 1 Aditya Keerthi 2021-03-22 12:31:43 PDT
<rdar://problem/75629529>
Comment 2 Aditya Keerthi 2021-03-22 12:40:27 PDT
Created attachment 423920 [details]
Patch
Comment 3 Wenson Hsieh 2021-03-22 13:07:31 PDT
Comment on attachment 423920 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=423920&action=review

r=mews

> Source/WebKit/UIProcess/ios/forms/WKFormSelectPicker.mm:540
> +        option.isSelected = (optionIndex == index);

Nit - I think you can omit the () here.

> LayoutTests/fast/forms/ios/form-control-refresh/select/no-stale-checked-items-in-select-picker.html:35
> +            }

Nit - no { } around this if.
Comment 4 Aditya Keerthi 2021-03-22 13:19:39 PDT
Created attachment 423924 [details]
Patch for landing
Comment 5 Aditya Keerthi 2021-03-22 13:19:59 PDT
Thanks for the review!
Comment 6 EWS 2021-03-23 06:58:34 PDT
Committed r274866: <https://commits.webkit.org/r274866>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 423924 [details].