Bug 250739

Summary: clicking the blank area in the date input can't trigger focusin event
Product: WebKit Reporter: 2471314
Component: FormsAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: akeerthi, cdumez, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: Safari 16   
Hardware: PC   
OS: macOS 13   
Attachments:
Description Flags
the focus event log
none
debug trace none

2471314
Reported 2023-01-17 16:59:21 PST
Created attachment 464530 [details] the focus event log Here is a demo: https://codesandbox.io/s/date-input-rd1p57 Observe the console log. Clicking the date/month/year fields can trigger focus/focusin events. But Clicking the blank area only triggers focus event, can't trigger focusin event.
Attachments
the focus event log (2.46 MB, video/mp4)
2023-01-17 16:59 PST, 2471314
no flags
debug trace (1.27 MB, image/png)
2023-01-19 23:50 PST, 2471314
no flags
2471314
Comment 1 2023-01-19 23:50:56 PST
Created attachment 464572 [details] debug trace After this line: m_focusedElement->dispatchFocusEvent(oldFocusedElement.copyRef(), options); m_focusedElement is changed to DateTimeMonthFieldElement
Radar WebKit Bug Importer
Comment 2 2023-01-24 17:00:22 PST
Note You need to log in before you can comment on or make changes to this bug.