docs: Change controlled CommandDialog from prop to event
Prop used in documentation :on-open-change, does not work and also seems to not exist in radix-vue Dialog component. So to properly control Dialog programmatically you need to use event @update:open.
This commit is contained in:
parent
9ebbd30175
commit
93df9fc8fb
|
|
@ -101,7 +101,7 @@ watch(CmdJ, (v) => {
|
|||
<span class="text-xs">⌘</span>J
|
||||
</kbd>
|
||||
</p>
|
||||
<CommandDialog :open="open" :on-open-change="handleOpenChange">
|
||||
<CommandDialog :open="open" @update:open="handleOpenChange">
|
||||
<CommandInput placeholder="Type a command or search..." />
|
||||
<CommandList>
|
||||
<CommandEmpty>No results found.</CommandEmpty>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user