Skip to content

[popover] Imperative Invokers and light dismiss #1166

Open
@lukewarlow

Description

@lukewarlow

Load https://jsfiddle.net/49Ljotn5

If you click on the declarative button it will toggle the popover open and closed.

If you click on the imperative button it will open the popover and never close it (though toggle events are fired).

This is accurate per spec: https://html.spec.whatwg.org/multipage/popover.html#nearest-inclusive-target-popover-for-invoker step 2.1 specifically references the popoverTargetElement concept.

My question is this: Is this expected or would it be better if we handled the invoker correctly for light dismiss?

cc @mfreed7

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions