Bug 308293
| Summary: | Popover light dismiss doesn't account for input buttons | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Luke Warlow <lwarlow> |
| Component: | DOM | Assignee: | Luke Warlow <lwarlow> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | karlcow, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari 26 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| See Also: |
https://github.com/web-platform-tests/wpt/pull/57934 https://bugs.webkit.org/show_bug.cgi?id=308308 |
||
Luke Warlow
The popover light dismiss algorithm correctly accounts for `<button commandfor="popover"...>` and `<button popovertarget="popover"...>` but *not* `<input type="button" popovertarget="popover"...<`.
https://jsfiddle.net/fkctxL8h/ - Click one of the buttons to open the popover, then click on the first button. You'll see the popover correctly closes.
Repeat but click the second button (which is an input button), you'll see the popover remains open.
In firefox and chromium both buttons behave the same.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Luke Warlow
Pull request: https://github.com/WebKit/WebKit/pull/59086
Radar WebKit Bug Importer
<rdar://problem/171352032>
EWS
Committed 313840@main (8f3795d82a4d): <https://commits.webkit.org/313840@main>
Reviewed commits have been landed. Closing PR #59086 and removing active labels.