Skip to content

Commit 0e882d4

Browse files
authored
Update dialog.mdx
1 parent d2d62a4 commit 0e882d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/documentation/components/dialog.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ Use the `onBeforeClose` prop to handle overlay/close clicks. It is executed
216216
when dialog is about to close. Return `false` to prevent the sheet from closing.
217217
218218
```jsx
219-
function PreserveBodyScrollingDialogExample() {
219+
function OnBeforeCloseExample() {
220220
const [isShown, setIsShown] = React.useState(false)
221221

222222
return (

0 commit comments

Comments
 (0)