Bug 261703 - showPicker() method of input doesn't work on iOS
Summary: showPicker() method of input doesn't work on iOS
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Forms (show other bugs)
Version: Safari 17
Hardware: iPhone / iPad Unspecified
: P2 Normal
Assignee: Luke Warlow
URL:
Keywords: InRadar
Depends on: 268114 257308 261701
Blocks:
  Show dependency treegraph
 
Reported: 2023-09-18 15:23 PDT by Luke Warlow
Modified: 2024-01-25 15:27 PST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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