diff options
author | bobzel <zzzman@gmail.com> | 2024-01-23 16:11:42 -0500 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2024-01-23 16:11:42 -0500 |
commit | af380979349308077e13fc12a2d09255b7f05f28 (patch) | |
tree | 79585221a23bccf2d352095b26bea99981ca92dc /src/client/views/nodes/importBox/ImportElementBox.tsx | |
parent | 001127c07f95173d7036db19d07dcfb1135f3caa (diff) |
reorganization of DocumentView, DocumentViewInternal and FieldView methods and props. fix for selection bug after following a link. migrating to use [DocData] instad of GetProto()
Diffstat (limited to 'src/client/views/nodes/importBox/ImportElementBox.tsx')
-rw-r--r-- | src/client/views/nodes/importBox/ImportElementBox.tsx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/client/views/nodes/importBox/ImportElementBox.tsx b/src/client/views/nodes/importBox/ImportElementBox.tsx index 7d0086c0c..6e7c3e612 100644 --- a/src/client/views/nodes/importBox/ImportElementBox.tsx +++ b/src/client/views/nodes/importBox/ImportElementBox.tsx @@ -1,4 +1,4 @@ -import { computed } from 'mobx'; +import { computed, makeObservable } from 'mobx'; import { observer } from 'mobx-react'; import * as React from 'react'; import { returnFalse } from '../../../../Utils'; @@ -12,6 +12,10 @@ export class ImportElementBox extends ViewBoxBaseComponent<FieldViewProps>() { public static LayoutString(fieldKey: string) { return FieldView.LayoutString(ImportElementBox, fieldKey); } + constructor(props: FieldViewProps) { + super(props); + makeObservable(this); + } screenToLocalXf = () => this.ScreenToLocalBoxXf().scale(1 * (this._props.NativeDimScaling?.() || 1)); @computed get mainItem() { |