Browse Source

add autoExpandParent

visuddhinanda 2 năm trước cách đây
mục cha
commit
2e554fd55f
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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);
       }}