fix(sidebar): hide sidebar instead of removing it
Previously, the sidebar was fully removed from DOM. This could cause unwanted behavior, such as tests which test its content failing. Now, it is just hidden. This does not affect tests any more.
This commit is contained in:
1 parent
d1e95582a8
commit
32555d9acb
1 file changed
+1
-1
@@ -36,7 +36,7 @@ const toggleSidebar = function toggleSidebar () {
|
|||||||
<div class="sidebar-controls">
|
<div class="sidebar-controls">
|
||||||
<SidebarExpandButton @click="toggleSidebar" class="sidebar-expand-button" />
|
<SidebarExpandButton @click="toggleSidebar" class="sidebar-expand-button" />
|
||||||
</div>
|
</div>
|
||||||
<div class="sidebar-content" v-if="props.expanded">
|
<div class="sidebar-content" v-show="props.expanded">
|
||||||
<slot />
|
<slot />
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|||||||
Reference in new issue
Block a user