Explorar el Código

add autoExpandParent

visuddhinanda hace 2 años
padre
commit
2e554fd55f
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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);
       }}