Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit 89fd2a2

Browse files
committed
fix: alert dialog leastDestructiveRef prop type
1 parent 22d60f6 commit 89fd2a2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/chakra-ui-core/src/CAlertDialog/CAlertDialog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ const CAlertDialog = {
5555
type: Function,
5656
default: () => null
5757
},
58-
leastDestructiveRef: [HTMLElement, Object]
58+
leastDestructiveRef: [HTMLElement, Object, String, Function]
5959
},
6060
render (h, { slots, props, data }) {
6161
return h(CModal, {

website/pages/alertdialog.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,4 +120,4 @@ exception is that it requires a `leastDestructiveRef` which is similar to the
120120

121121
| Name | Type | Default | Description |
122122
| ------------------------------ | --------------------------------- | ------- | ------------------------------------------------------------- |
123-
| leastDestructiveRef (required) | `ref`, `selector` `Function: ref` | | The least destructive action to get focus when dialog is open |
123+
| leastDestructiveRef (required) | `vm.$ref`, `() => vm.ref` or `CSS selector` | | The least destructive action to get focus when dialog is open |

0 commit comments

Comments
 (0)