warren creation / edit / deletion
This commit is contained in:
@@ -45,10 +45,16 @@ function onKeyDown(e: KeyboardEvent) {
|
||||
submit();
|
||||
}
|
||||
}
|
||||
|
||||
function onOpenChange(state: boolean) {
|
||||
if (!state) {
|
||||
dialog.reset();
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<Dialog v-model:open="dialog.open">
|
||||
<Dialog v-model:open="dialog.open" @update:open="onOpenChange">
|
||||
<DialogTrigger as-child>
|
||||
<slot />
|
||||
</DialogTrigger>
|
||||
|
||||
Reference in New Issue
Block a user