mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-29 00:20:04 +01:00
web: expand parent when a child notebook is added
This commit is contained in:
@@ -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}
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user