Skip to content

Commit a183c7d

Browse files
committed
fix(components): use v-if on slots instead of lock icons
1 parent c27c895 commit a183c7d

File tree

1 file changed

+4
-4
lines changed
  • packages/vue-flow/src/additional-components/Controls

1 file changed

+4
-4
lines changed

packages/vue-flow/src/additional-components/Controls/Controls.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,11 @@ export default {
7979
<template v-if="showInteractive">
8080
<slot name="control-interactive">
8181
<ControlButton v-if="showInteractive" class="vue-flow__controls-interactive" @click="onInteractiveChangeHandler">
82-
<slot name="icon-unlock">
83-
<Unlock v-if="isInteractive" />
82+
<slot v-if="isInteractive" name="icon-unlock">
83+
<Unlock />
8484
</slot>
85-
<slot name="icon-lock">
86-
<Lock v-if="!isInteractive" />
85+
<slot v-if="!isInteractive" name="icon-lock">
86+
<Lock />
8787
</slot>
8888
</ControlButton>
8989
</slot>

0 commit comments

Comments
 (0)