Bug 261703

Summary: showPicker() method of input doesn't work on iOS
Product: WebKit Reporter: Luke Warlow <lwarlow>
Component: FormsAssignee: Luke Warlow <lwarlow>
Status: NEW ---    
Severity: Normal CC: akeerthi, cdumez, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: Safari 17   
Hardware: iPhone / iPad   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=257308
https://bugs.webkit.org/show_bug.cgi?id=261701
Bug Depends on: 268114, 257308, 261701    
Bug Blocks:    

Description Luke Warlow 2023-09-18 15:23:59 PDT
Visit https://demo.lukewarlow.dev/showPicker/

Click "color showPicker" button

Nothing will happen. It should load the colour input like it does on desktop safari.
Comment 1 Aditya Keerthi 2023-09-18 18:21:56 PDT
I don't believe we've implemented `showPicker()` for any controls on iOS.

Though it would effectively be a wrapper around `focus()`, since native iOS pickers are tied to element focus.
Comment 2 Luke Warlow 2023-09-18 18:42:02 PDT
showPicker works for the iOS file input, but otherwise yeah nothing else works. But only file and colour are currently implemented on desktop.
Comment 3 Radar WebKit Bug Importer 2023-09-25 15:24:13 PDT
<rdar://problem/116018863>
Comment 4 Luke Warlow 2023-10-01 16:05:55 PDT
See https://github.com/whatwg/html/issues/9757 for a HTML spec question regarding showPicker and focus
Comment 5 Luke Warlow 2023-10-02 05:42:48 PDT
Blocking this on the date and datalist implementations. That way we can fix iOS all in one go.
Comment 6 Luke Warlow 2023-10-02 06:13:42 PDT
Pull request: https://github.com/WebKit/WebKit/pull/18494