Skip to content

Commit

Permalink
Fix modal check in dialog closing algorithm
Browse files Browse the repository at this point in the history
The value for is modal needs to be cached. This was pointed out here:
whatwg#9178 (comment).
  • Loading branch information
josepharhar authored and rubberyuzu committed Jul 20, 2023
1 parent 86bff8a commit 1be178c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -60508,6 +60508,9 @@ interface <dfn interface>HTMLDialogElement</dfn> : <span>HTMLElement</span> {
<li><p>Let <var>wasModal</var> be the value of <var>subject</var>'s <span>is
modal</span> flag.</p></li>

<li><p>Let <var>wasModal</var> be the value of <var>subject</var>'s <span>is
modal</span> flag.</p></li>

<li><p>Set the <span>is modal</span> flag of <var>subject</var> to false.</p></li>

<li><p>If <var>result</var> is not null, then set the <code
Expand Down

0 comments on commit 1be178c

Please sign in to comment.