Bug 261701

Summary: showPicker() method does not trigger datalist
Product: WebKit Reporter: Luke Warlow <lwarlow>
Component: FormsAssignee: Luke Warlow <lwarlow>
Status: RESOLVED FIXED    
Severity: Normal CC: akeerthi, cdumez, karlcow, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: BrowserCompat, InRadar
Version: Safari 17   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=257308
https://bugs.webkit.org/show_bug.cgi?id=261703
Bug Depends on:    
Bug Blocks: 261703, 262852    

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

When click the showPicker buttons for the various inputs near the bottom that have attached datalists nothing happens. I would expect this to behave like Chrome and correctly show the datalist.
Comment 1 Karl Dubost 2023-09-19 01:32:29 PDT
Y = Yes 
N = No
M = Maybe

Tested on macOS, not iOS

S F C
------
Y Y Y date (for Safari only on clicking the field)
M M Y datetime-local (for Safari only on clicking the field. For Firefox/Safari, no time picker)
N N Y time
N N Y month  (Safari/Firefox shows text instead of month)
N N Y week   (Safari/Firefox shows text instead of week)
Y Y Y color
N N M email  (Chrome shows item1)
Y Y Y file
Y Y M number (Chrome shows item1. Safari/Firefox have widgets for selecting numbers)
N N M search (Chrome shows item1)
N N M tel (Chrome shows item1)
N N M text (Chrome shows item1)
N N M url (Chrome shows item1)

To note that this is probably not part of WebKit for most of it, but UIKit.
Comment 2 Luke Warlow 2023-09-19 05:58:24 PDT
Pull request: https://github.com/WebKit/WebKit/pull/17910
Comment 3 Radar WebKit Bug Importer 2023-09-25 15:03:36 PDT
<rdar://problem/116017782>
Comment 4 EWS 2023-10-30 16:03:24 PDT
Committed 269981@main (dddc5bb328a4): <https://commits.webkit.org/269981@main>

Reviewed commits have been landed. Closing PR #17910 and removing active labels.