diff options
| author | bobzel <zzzman@gmail.com> | 2025-03-06 19:46:43 -0500 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2025-03-06 19:46:43 -0500 |
| commit | 1ab6f6c87b746e0c2898694216db50d5faadf7f5 (patch) | |
| tree | 84349c4bcbdfa0a53c4937421867e7665e7da663 /src/client/views/collections/TreeView.tsx | |
| parent | 5ad858090f3006631062877d90120e3cc505fada (diff) | |
a bunch of changes to improve how docs are selected automatically when created.
Diffstat (limited to 'src/client/views/collections/TreeView.tsx')
| -rw-r--r-- | src/client/views/collections/TreeView.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/TreeView.tsx b/src/client/views/collections/TreeView.tsx index ab4d8b060..6208905fe 100644 --- a/src/client/views/collections/TreeView.tsx +++ b/src/client/views/collections/TreeView.tsx @@ -1300,7 +1300,7 @@ export class TreeView extends ObservableReactComponent<TreeViewProps> { const fieldKey = Doc.LayoutFieldKey(newParent); if (remove && fieldKey && Cast(newParent[fieldKey], listSpec(Doc)) !== undefined) { remove(child); - Doc.SetSelectOnLoad(child); + DocumentView.SetSelectOnLoad(child); TreeView._editTitleOnLoad = editTitle ? { id: child[Id], parent } : undefined; Doc.AddDocToList(newParent, fieldKey, child, addAfter, false); newParent.treeView_Open = true; |
