Bug 316402
| Summary: | pointerdown preventDefault() does not stop focus from moving if tabindex is used | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Alex <alexander> |
| Component: | UI Events | Assignee: | 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
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
<rdar://problem/179472634>