Bug 308937
| Summary: | Safari on iOS fires "pointerenter" with mouse pointerType on elements being removed. | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Rob Snow <rsnow> |
| Component: | UI Events | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | ||
| Priority: | P2 | ||
| Version: | Safari 26 | ||
| Hardware: | iPhone / iPad | ||
| OS: | iOS 26 | ||
Rob Snow
https://codepen.io/snowystinger/pen/OPXOOGO
To reproduce, touch the "x", which will be removed when the checkbox is checked.
When you have an element that is removed in the midst of an onChange, pointerLeave is fired with `pointerType` set to "mouse".
It may be fired twice, with a preceding event with `pointerType` set to "touch". Depends on how far off to the right side you are.
These are the possible leave event scenarios:
* pointer leave: touch
* pointer leave: mouse
or just
*pointer leave: mouse
It also happens in our library when closing modals and removing the underlay.
Possibly related to https://bugs.webkit.org/show_bug.cgi?id=214609
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |