Skip to content

Issue with "hide all popovers until" algorithm #8963

@nt1m

Description

@nt1m

To hide all popovers until, given an HTML element or Document endpoint, a boolean focusPreviousElement, and a boolean fireEvents:

  1. Let document be endpoint's node document.
  2. Let closeAllOpenPopovers be an algorithm which performs the following steps:
    1. Let popover be document's topmost auto popover.
    1. While popover is not null:
      1. Run the hide popover algorithm given popover, focusPreviousElement, fireEvents, and false.
      1. Set popover to document's topmost auto popover.
  3. If endpoint is null, then run closeAllOpenPopovers and return.

So "endpoint" can be null, so how does steps 1. & 2. get the document? Does that algorithm need to always take a document as extra argument?

cc @josepharhar @mfreed7 @domenic

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: popoverThe popover attribute and friends

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions