Skip to content

Commit

Permalink
docs: Fix persistent dialog close example
Browse files Browse the repository at this point in the history
  • Loading branch information
techniq committed Oct 20, 2024
1 parent 2f69665 commit 35511f2
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,11 @@
persistent
let:close
on:close={() => {
alert("Persistent Dialog forced close via 'close({ force: true })'.\n\nDialog will close.");
if (open) {
alert(
"Persistent Dialog forced close via 'close({ force: true })'.\n\nDialog will close."
);
}
toggleOff();
}}
on:closeAttempt={() => {
Expand Down

0 comments on commit 35511f2

Please sign in to comment.