Bug 239655
| Summary: | Focus event fired unnecessarily on mobile devices after interacting with a select box | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Andrew <app.caloric327> |
| Component: | UI Events | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | akeerthi, app.caloric327, webkit-bug-importer, wenson_hsieh |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari 15 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Andrew
Originally raise here https://bugs.chromium.org/p/chromium/issues/detail?id=1316314
Reproduction: https://jsfiddle.net/amk221/z3fdtj2y/
When a select box is interacted with using a mouse on a desktop, and that select box is inside a focusable element, then focus stays within that element. This is correct and works fine.
The same scenario but run on a mobile device (where select boxes are often rendered differently), causes focus to leave the _container_ element (which it shouldn't do because focus is still on the select box which is a child of the container).
I believe this is in correct behaviour and that the two scenarios should match each other.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/92523984>