ソースを参照

add autoExpandParent

visuddhinanda 3 年 前
親
コミット
2e554fd55f
1 ファイル変更、1 行追加、0 行削除
  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);
       }}
       }}