aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/collectionFreeForm
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2023-11-19 15:30:53 -0500
committerbobzel <zzzman@gmail.com>2023-11-19 15:30:53 -0500
commit3d18fc27f55c993de9c61297428690aa9c49184f (patch)
treec3b207dede28eed4a332040e38ffc2200c7b012e /src/client/views/collections/collectionFreeForm
parenta6b0fd0612667404dfc92052723d4a1ec5d9d72c (diff)
restored shallow observable to prevent pivot views from crashing.
Diffstat (limited to 'src/client/views/collections/collectionFreeForm')
-rw-r--r--src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx
index ba4e30a9b..45af1064a 100644
--- a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx
+++ b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx
@@ -104,7 +104,7 @@ export class CollectionFreeFormView extends CollectionSubView<Partial<collection
return (this.props.viewField ?? '') + '_freeform_autoReset';
}
- @observable _layoutElements: ViewDefResult[] = [];
+ @observable.shallow _layoutElements: ViewDefResult[] = []; // shallow because some layout items (eg pivot labels) are just generated 'divs' and can't be frozen as observables
@observable _panZoomTransition: number = 0; // sets the pan/zoom transform ease time- used by nudge(), focus() etc to smoothly zoom/pan. set to 0 to use document's transition time or default of 0
@observable _firstRender = false; // this turns off rendering of the collection's content so that there's instant feedback when a tab is switched of what content will be shown. could be used for performance improvement
@observable _showAnimTimeline = false;