WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
316402
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
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2026-06-12 05:53:11 PDT
<
rdar://problem/179472634
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug