Bug 268273

Summary: iPad: value set to <select> form by JavaScript is not applied to popup UI until blur
Product: WebKit Reporter: Takao Baba <baba>
Component: FormsAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: akeerthi, cdumez, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: Safari 17   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
screenshot none

Takao Baba
Reported 2024-01-28 21:28:07 PST
Created attachment 469589 [details] screenshot Steps to reproduce: 1. Open https://jsbin.com/tawelomajo/1/edit?html,js,output by iPad (not iPhone) Safari. 2. Touch the select box. Change the value to "2" on shown popup UI. 3. Re-touch the select box. Expected behavior: Both of them should be "1": - the displayed value on HTML - the default value in popup UI shown by step 3. Actual behavior: The displayed value on HTML is "1", but the default value in popup UI is "2". The latter will be fixed when the <select> loses focus by touching anywhere or calling "blur()". Note: All browsers other than iPad Safari works correctly. On iPhone Safari, the <select> automatically loses focus after changing value so the issue cannot be reproduced.
Attachments
screenshot (211.40 KB, image/png)
2024-01-28 21:28 PST, Takao Baba
no flags
Radar WebKit Bug Importer
Comment 1 2024-02-04 21:29:13 PST
Note You need to log in before you can comment on or make changes to this bug.