Skip to content

Commit d378c1b

Browse files
committed
feat: Show parent item in tree view when expanded for better visibility
1 parent bd601a1 commit d378c1b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -971,6 +971,7 @@
971971
current.classList.add('open');
972972
const parentItem = current.parentElement;
973973
if (parentItem && parentItem.classList.contains('tree-item')) {
974+
parentItem.style.display = '';
974975
const btn = parentItem.querySelector('.expand-btn');
975976
if (btn) {
976977
btn.classList.add('expanded');

0 commit comments

Comments
 (0)