diff options
| author | bobzel <zzzman@gmail.com> | 2020-08-11 22:18:19 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2020-08-11 22:18:19 -0400 |
| commit | c626dff8553c0501784e8b82535f3d167a9f82c6 (patch) | |
| tree | dc8395ee01fe97dc99ccf9dd39397db8b70e9d6f /src/client/views/collections/CollectionTreeView.tsx | |
| parent | 4f47449af32853266fb87067231b5f3c3946002f (diff) | |
fixed crashes in PresBox when selecting in tree view. fixed selection of treeView items to update PropertiesView
Diffstat (limited to 'src/client/views/collections/CollectionTreeView.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionTreeView.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/CollectionTreeView.tsx b/src/client/views/collections/CollectionTreeView.tsx index 821860071..ed4539c2e 100644 --- a/src/client/views/collections/CollectionTreeView.tsx +++ b/src/client/views/collections/CollectionTreeView.tsx @@ -127,7 +127,7 @@ class TreeView extends React.Component<TreeViewProps> { constructor(props: any) { super(props); - const script = ScriptField.MakeScript(`{setInPlace(self, 'editTitle', '${this._uniqueId}'); selectDoc(self);} `); + const script = ScriptField.MakeScript(`{setInPlace(self, 'editTitle', '${this._uniqueId}'); documentView.select();} `, { documentView: "any" }); this._editTitleScript = script && (() => script); if (Doc.GetT(this.doc, "editTitle", "string", true) === "*") Doc.SetInPlace(this.doc, "editTitle", this._uniqueId, false); } |
