diff options
| author | bobzel <zzzman@gmail.com> | 2023-11-19 15:30:53 -0500 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2023-11-19 15:30:53 -0500 |
| commit | 3d18fc27f55c993de9c61297428690aa9c49184f (patch) | |
| tree | c3b207dede28eed4a332040e38ffc2200c7b012e /src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx | |
| parent | a6b0fd0612667404dfc92052723d4a1ec5d9d72c (diff) | |
restored shallow observable to prevent pivot views from crashing.
Diffstat (limited to 'src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx')
| -rw-r--r-- | src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx | 2 |
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; |
