Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu authored and sxzz committed Aug 21, 2023
1 parent d0b87d9 commit eb5ca19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/runtime-dom/src/directives/vModel.ts
Expand Up @@ -230,10 +230,10 @@ export const vModelDetails: ModelDirective<HTMLDetailsElement> = {

export const vModelDialog: ModelDirective<HTMLDialogElement> = {
created(el, _, vnode) {
el._assign = getModelAssigner(vnode)
addEventListener(el, 'close', () => {
el._assign(false)
})
el._assign = getModelAssigner(vnode)
},
mounted(el, { value }) {
el.open = value
Expand Down

0 comments on commit eb5ca19

Please sign in to comment.