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 37f25b0 commit 1e9dcb8Copy full SHA for 1e9dcb8
packages/anu-vue/src/components/switch/ASwitch.tsx
@@ -53,7 +53,7 @@ export const ASwitch = defineComponent({
53
},
54
emits: ['update:modelValue'],
55
setup(props, { slots, attrs, emit }) {
56
- const elementId = `a-switch-${attrs.id || attrs.value || Math.random().toString(36).slice(2, 7)}`
+ const elementId = `a-switch-${attrs.id || attrs.value}-${Math.random().toString(36).slice(2, 7)}`
57
const data = useVModel(props, 'modelValue', emit)
58
59
const dotPosition = computed(() => {
0 commit comments