fix: add DialogClose in Dialog withCloseOnClick story
This commit is contained in:
parent
9493fb8857
commit
208699743f
@ -85,15 +85,17 @@ export const WithCloseOnClick = () => {
|
||||
ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut
|
||||
aliquip ex ea commodo consequat.
|
||||
</p>
|
||||
<DialogClose>
|
||||
<Button
|
||||
onClick={(e) => {
|
||||
console.log(`Closed dialog: `, e.currentTarget);
|
||||
}}
|
||||
>
|
||||
Close Dialog
|
||||
</Button>
|
||||
</DialogClose>
|
||||
<DialogFooter>
|
||||
<DialogClose>
|
||||
<Button
|
||||
onClick={(e) => {
|
||||
console.log(`Closed dialog: `, e.currentTarget);
|
||||
}}
|
||||
>
|
||||
Close Dialog
|
||||
</Button>
|
||||
</DialogClose>
|
||||
</DialogFooter>
|
||||
</DialogContent>
|
||||
</DialogOverlay>
|
||||
</DialogRoot>
|
||||
|
Loading…
x
Reference in New Issue
Block a user