mirror of
https://github.com/n8n-io/n8n.git
synced 2026-09-24 23:22:38 +08:00
fix(editor): Avoid recursive name collision in N8nToggle (no-changelog) (#31271)
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import { Toggle, ToggleGroupItem, type AcceptableValue } from 'reka-ui';
|
||||
import { Toggle as TogglePrimitive, ToggleGroupItem, type AcceptableValue } from 'reka-ui';
|
||||
import { computed, ref, useAttrs, useCssModule } from 'vue';
|
||||
|
||||
import type { IconName } from '@n8n/design-system/components/N8nIcon/icons';
|
||||
@@ -88,7 +88,7 @@ const pressed = computed({
|
||||
</span>
|
||||
</ToggleGroupItem>
|
||||
|
||||
<Toggle
|
||||
<TogglePrimitive
|
||||
v-else
|
||||
v-bind="attrs"
|
||||
v-model="pressed"
|
||||
@@ -103,7 +103,7 @@ const pressed = computed({
|
||||
<N8nIcon v-if="icon" :icon="icon" :size="computedIconSize" />
|
||||
<slot />
|
||||
</span>
|
||||
</Toggle>
|
||||
</TogglePrimitive>
|
||||
</N8nTooltip>
|
||||
</template>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user