Browse Source

add autoExpandParent

visuddhinanda 2 years ago
parent
commit
2e554fd55f
1 changed files with 1 additions and 0 deletions
  1. 1 0
      dashboard/src/components/article/TocTree.tsx

+ 1 - 0
dashboard/src/components/article/TocTree.tsx

@@ -125,6 +125,7 @@ const TocTreeWidget = ({
       treeData={tree}
       treeData={tree}
       expandedKeys={expanded}
       expandedKeys={expanded}
       selectedKeys={selected}
       selectedKeys={selected}
+      autoExpandParent
       onExpand={(expandedKeys: Key[]) => {
       onExpand={(expandedKeys: Key[]) => {
         setExpanded(expandedKeys);
         setExpanded(expandedKeys);
       }}
       }}