| Summary: | showPicker() method of date input doesn't work | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Tigran <buddha-1> | ||||
| Component: | Forms | Assignee: | Luke Warlow <lwarlow> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | ahmad.saleem792, akeerthi, cdumez, lwarlow, webkit-bug-importer, wenson_hsieh | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | Safari 16 | ||||||
| Hardware: | Mac (Apple Silicon) | ||||||
| OS: | macOS 13 | ||||||
| Bug Depends on: | |||||||
| Bug Blocks: | 261703 | ||||||
| Attachments: |
|
||||||
It should be noted that calling `.click()` on date and datetime-local inputs does correctly open the picker, so `.showPicker()` should. It seems that these are empty: https://searchfox.org/wubkat/source/Source/WebCore/html/InputType.cpp#611 void InputType::handleDOMActivateEvent(Event&) { } void InputType::showPicker() { } While in case of others, we have 'ColorInputType::handleDOMActivateEvent' as an example, we do call 'showPicker' and have 'showPicker' function as well. https://searchfox.org/wubkat/source/Source/WebCore/html/ColorInputType.cpp#184 I'm happy to take a look at this and https://bugs.webkit.org/show_bug.cgi?id=261701 tomorrow. Doesn't look to be too difficult to wire up. Pull request: https://github.com/WebKit/WebKit/pull/17916 Committed 269257@main (96b83e8d4b0e): <https://commits.webkit.org/269257@main> Reviewed commits have been landed. Closing PR #17916 and removing active labels. |
Created attachment 466494 [details] showPicker() method called on typing in a text field or clicking a button The `showPicker()` method of the date input (`<input type="date">`) doesn't work. In the demo file typing any character in the text field or clicking the "Show picker" button call `showPicker()`. Thus those actions should open the date picker. In Safari the date picker is not opened. No errors are thrown.