Skip to content

Commit

Permalink
docs: Fix "Dialog in Dialog" example
Browse files Browse the repository at this point in the history
  • Loading branch information
techniq committed Oct 20, 2024
1 parent 35511f2 commit 8af7ebb
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
<div slot="title">Delete this item ?</div>
<div class="px-6 py-3">This will permanently delete the item</div>
<div slot="actions">
<Toggle let:on={openSecond} let:toggle={toggleConfirm}>
<Toggle let:on={openSecond} let:toggle={toggleConfirm} let:toggleOff={toggleConfirmOff}>
<Button
icon={mdiTrashCan}
on:click={(e) => {
Expand All @@ -138,7 +138,7 @@
>
Yes
</Button>
<Dialog open={openSecond} on:close={toggleConfirm}>
<Dialog open={openSecond} on:close={toggleConfirmOff}>
<div slot="title">Are you <b>REALLY</b> sure?</div>
<div class="px-6 py-3">
This will permanently delete the item and can not be undone.
Expand All @@ -147,7 +147,7 @@
<Button
on:click={(e) => {
console.log('Deleting item...');
toggleConfirm();
toggleConfirmOff();
toggleDeleteOff();
}}
variant="fill"
Expand Down

0 comments on commit 8af7ebb

Please sign in to comment.