Bug 316402

Summary: pointerdown preventDefault() does not stop focus from moving if tabindex is used
Product: WebKit Reporter: Alex <alexander>
Component: UI EventsAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: a_protyasha, ian, lily_spiniolas, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 26   
Hardware: iPhone / iPad   
OS: iOS 26   
See Also: https://bugs.webkit.org/show_bug.cgi?id=322721

Alex
Reported 2026-06-05 05:52:31 PDT
When you call preventDefault() on a pointerdown event it should stop the focus from moving, i.e. it should remain where it is. However if the element that is being tapped has tabindex="0" this stops working in iOS. It works everywhere else, including MacOS Safari. Using mousedown instead is working. Here's a very simple demo, tap input then tap blue div: https://codepen.io/waterplea/pen/ByQPLLq
Attachments
Radar WebKit Bug Importer
Comment 1 2026-06-12 05:53:11 PDT
Note You need to log in before you can comment on or make changes to this bug.