We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac1eead commit cf17e0eCopy full SHA for cf17e0e
packages/vue-final-modal/src/components/ModalsContainer.vue
@@ -1,5 +1,5 @@
1
<script setup lang="ts">
2
-import { computed, onBeforeUnmount, watch } from 'vue'
+import { computed, onBeforeUnmount } from 'vue'
3
import { useInternalVfm, useVfm } from '~/useApi'
4
import { isString } from '~/utils'
5
@@ -13,11 +13,6 @@ modalsContainers.value.push(uid)
13
onBeforeUnmount(() => {
14
modalsContainers.value = modalsContainers.value.filter(i => i !== uid)
15
})
16
-
17
-watch(() => modalsContainers.value.length, (val) => {
18
- if (shouldMount.value && val > 1)
19
- console.warn('[Vue Final Modal] Warning: <ModalsContainer> should be mount only once in your Vue App.')
20
-})
21
</script>
22
23
<template>
0 commit comments