Skip to content

Commit

Permalink
🐛 Fix nested gridlines toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
geekhybrid committed Jun 12, 2021
1 parent 369231f commit 3e2e814
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/treeView.vue/treeView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
@dragleave.stop="removeHoverClass">

<div class="d-flex align-items-center">
<div class="horizontal-dashes" v-if="treeViewItem.parentId && hideGuideLines !== false" />
<div class="horizontal-dashes" v-if="treeViewItem.parentId && hideGuideLines === false" />
<span class="chevron-right" v-if="treeViewItem.children && treeViewItem.children.length > 0" @click="toggleVisiblity(treeViewItem.id, $event)"></span>
<div class="icon-area">
<slot name="icon" v-bind="treeViewItem">
Expand All @@ -22,7 +22,7 @@
</div>

<div class="node-child hide" :class="{'hide-guidelines': hideGuideLines}">
<tree-view :treeViewItems="treeViewItem.children" nested
<tree-view :treeViewItems="treeViewItem.children" nested :hideGuideLines="hideGuideLines"
v-if="treeViewItem.children && treeViewItem.children.length > 0" >
<template v-for="(_, slot) of $scopedSlots" v-slot:[slot]="props">
<slot :name="slot" v-bind="props"/>
Expand Down

0 comments on commit 3e2e814

Please sign in to comment.