fix(editor): Avoid recursive name collision in N8nToggle (no-changelog) (#31271)

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Garrit Franke
2026-05-28 12:45:45 +00:00
committed by GitHub
co-authored by Cursor
parent a5e656edb9
commit 5ae63283ed
@@ -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>