Skip to content

Commit 491ca10

Browse files
Fix for name prop issue
1 parent 9445b0f commit 491ca10

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/plugin/VResizeDrawer.vue

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ import {
6565
import { IconOptions, useDisplay, useTheme } from 'vuetify';
6666
import { VNavigationDrawer } from 'vuetify/components';
6767
import { AllProps } from '@utils/props';
68+
import { componentName } from '@utils/globals';
6869
import {
6970
useGetStorage,
7071
useSetStorage,
@@ -138,6 +139,13 @@ if (settings.value.location !== 'start' && settings.value.location !== 'end' &&
138139
throw new Error("[VResizeDrawer]: 'top' and 'bottom' locations are not supported.");
139140
}
140141
142+
onBeforeMount(() => {
143+
console.log(componentName);
144+
if (settings.value.name === componentName) {
145+
settings.value.name = String(Math.floor(Math.random() * (10000 * 10000)));
146+
}
147+
});
148+
141149
onMounted(() => {
142150
init();
143151
});

0 commit comments

Comments
 (0)