@volverjs/ui-vue 0.0.9-beta.14 → 0.0.9-beta.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -476,6 +476,7 @@
476
476
  :aria-label="
477
477
  propsDefaults.deselectActionLabel
478
478
  "
479
+ type="button"
479
480
  @click.stop="onInput(option)"
480
481
  >
481
482
  <VvIcon name="close" />
@@ -49,12 +49,16 @@
49
49
  const transitioName = computed(() => `vv-dialog--${props.transition}`)
50
50
  const dialogTransitionHandlers = {
51
51
  'before-enter': () => {
52
- dialogEl.value?.showModal()
52
+ if (!dialogEl.value?.open) {
53
+ dialogEl.value?.showModal()
54
+ }
53
55
  emit('open')
54
56
  emit('before-enter')
55
57
  },
56
58
  'after-leave': () => {
57
- dialogEl.value?.close()
59
+ if (dialogEl.value?.open) {
60
+ dialogEl.value?.close()
61
+ }
58
62
  emit('close')
59
63
  emit('after-leave')
60
64
  },