Skip to content

Commit

Permalink
Fix ReponsiveMenu persistent Dialog and Drawer examples
Browse files Browse the repository at this point in the history
  • Loading branch information
techniq committed Aug 16, 2024
1 parent 2bf4c48 commit 9ae17f0
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@

<Toggle let:on={open} let:toggle={toggleDialog} on:toggleOff={closeMenu}>
<MenuItem on:click={toggleDialog}>Open Persistent Dialog...</MenuItem>
<Dialog {open} on:close={toggleDialog} persistent let:close>
<Dialog {open} on:close={toggleDialog} persistent>
<div slot="title">Are you sure you want to do that?</div>
<div slot="actions">
<div slot="actions" let:close>
<Button variant="fill" color="primary" on:click={() => close({ force: true })}>
Close
</Button>
Expand All @@ -101,8 +101,8 @@

<Toggle let:on={open} let:toggle={toggleDrawer} let:toggleOff on:toggleOff={closeMenu}>
<MenuItem on:click={toggleDrawer}>Open Persistent Drawer...</MenuItem>
<Drawer {open} on:close={toggleOff} class="w-[400px]" persistent let:close>
<div slot="actions">
<Drawer {open} on:close={toggleOff} class="w-[400px]" persistent>
<div slot="actions" let:close>
<Button on:click={() => close({ force: true })}>Close</Button>
</div>
</Drawer>
Expand Down

0 comments on commit 9ae17f0

Please sign in to comment.