Kaynağa Gözat

add autoExpandParent

visuddhinanda 3 yıl önce
ebeveyn
işleme
2e554fd55f
1 değiştirilmiş dosya ile 1 ekleme ve 0 silme
  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}
       expandedKeys={expanded}
       selectedKeys={selected}
+      autoExpandParent
       onExpand={(expandedKeys: Key[]) => {
         setExpanded(expandedKeys);
       }}