NEW316402
pointerdown preventDefault() does not stop focus from moving if tabindex is used
https://bugs.webkit.org/show_bug.cgi?id=316402
Summary pointerdown preventDefault() does not stop focus from moving if tabindex is used
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.