diff options
| author | bobzel <zzzman@gmail.com> | 2021-02-22 20:38:57 -0500 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2021-02-22 20:38:57 -0500 |
| commit | f22163e9e4118df3faf06afc28045b84615fba0d (patch) | |
| tree | 0c1066f10283a230142a62957444febce9e81dad /src/client/views/collections/collectionFreeForm | |
| parent | 6412e426d37bb669fc3ef5deb1f5d6803fe4d6ed (diff) | |
fixes to tree view folders to fix indent/outdent/retitlte issues related to stoppropagating events when active() was not true
Diffstat (limited to 'src/client/views/collections/collectionFreeForm')
| -rw-r--r-- | src/client/views/collections/collectionFreeForm/MarqueeView.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/collectionFreeForm/MarqueeView.tsx b/src/client/views/collections/collectionFreeForm/MarqueeView.tsx index d7fc2feda..36d14056b 100644 --- a/src/client/views/collections/collectionFreeForm/MarqueeView.tsx +++ b/src/client/views/collections/collectionFreeForm/MarqueeView.tsx @@ -134,7 +134,7 @@ export class MarqueeView extends React.Component<SubCollectionViewProps & Marque e.stopPropagation(); } else if (e.key === "f" && e.ctrlKey) { e.preventDefault(); - const root = Docs.Create.FreeformDocument([], { title: "folder", _stayInCollection: true, isFolder: true }); + const root = Docs.Create.TreeDocument([], { title: "folder", _stayInCollection: true, isFolder: true }); const folder = Docs.Create.TreeDocument([root], { title: "root", isFolder: true, treeViewType: "fileSystem", treeViewTruncateTitleWidth: 150 }); Doc.GetProto(folder).isFolder = true; folder.x = x; |
