← Back to release summary

Popover nested inside invoker shouldn't re-invoke it

Category
DOM
Type
New or changed feature
Status
In developer trial (Behind a flag) (Chrome 133)
Intent stage
None

Summary

In this case: ``` <button popovertarget=foo>Activate <div popover id=foo>Clicking me shouldn't close me</div> </button> ``` clicking the button properly activates the popover, however, clicking on the popover itself after that should **not** close the popover. It currently does because the popover click bubbles to the `<button>` and activates the invoker, which toggles the popover closed. This chromestatus tracks changing the behavior so that clicking on the nested popover does not re-invoke itself. {Note: this likely should have been created as a "No developer-visible change" chromestatus entry, but it's too late now.}

Motivation

The current behavior is odd - clicking on an open popover doesn't close that popover in any other circumstance. The change makes that assumption correct, even in this weird corner case.

Standards & signals

View on chromestatus.com