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.
<rdar://problem/110099910>
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.