web: expand parent when a child notebook is added

This commit is contained in:
Abdullah Atta
2024-02-22 15:43:53 +05:00
parent 9798ada335
commit 963f331290

View File

@@ -367,9 +367,10 @@ function SubNotebooks({
expand={props.context.expandItem}
focus={props.context.focusItem}
rootId={rootId}
refresh={() =>
reloadItem.current && reloadItem.current([props.item.index])
}
refresh={() => {
reloadItem.current && reloadItem.current([props.item.index]);
setTimeout(() => props.context.expandItem());
}}
/>
{props.children}
</>