Skip to content

Commit

Permalink
Make togglePopover() return a boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
josepharhar committed Jun 20, 2023
1 parent 40a0dcf commit 3824cd6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -11573,7 +11573,7 @@ interface <dfn interface>HTMLElement</dfn> : <span>Element</span> {
// The popover API
undefined <span data-x="dom-showPopover">showPopover</span>();
undefined <span data-x="dom-hidePopover">hidePopover</span>();
undefined <span data-x="dom-togglePopover">togglePopover</span>(optional boolean force);
boolean <span data-x="dom-togglePopover">togglePopover</span>(optional boolean force);
[<span>CEReactions</span>] attribute DOMString? <span data-x="dom-popover">popover</span>;
};

Expand Down Expand Up @@ -82434,7 +82434,8 @@ dictionary <dfn dictionary>DragEventInit</dfn> : <span>MouseEventInit</span> {
data-x="dom-togglePopover">togglePopover</span>()</code></dt>

<dd>If the popover <var>element</var> is not showing, then this method shows it. Otherwise, this
method hides it.</dd>
method hides it. This method returns true if the popover is open after calling it, otherwise
false.</dd>
</dl>

<p>The <dfn method for="HTMLElement"><code data-x="dom-showPopover">showPopover()</code></dfn>
Expand Down Expand Up @@ -82721,6 +82722,9 @@ dictionary <dfn dictionary>DragEventInit</dfn> : <span>MouseEventInit</span> {

<li><p>Otherwise, if <var>force</var> is not present or true, then run <span>show popover</span>
given <span>this</span> true, and null.</p></li>

<li><p>Return true if <span>this</span>'s <span>popover visibility state</span> is <span
data-x="popover-showing-state">showing</span>; otherwise false.</p></li>
</ol>

<p>To <dfn data-x="hide-all-popovers-until">hide all popovers until</dfn>, given an <span
Expand Down

0 comments on commit 3824cd6

Please sign in to comment.