diff options
| author | bobzel <zzzman@gmail.com> | 2023-12-14 00:07:52 -0500 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2023-12-14 00:07:52 -0500 |
| commit | cebe9d2a567c20b99c8c394cfa598ee9d4d53ece (patch) | |
| tree | c33df9a3dc80cb199002610cc38645976023eff9 /src/client/views/InkStrokeProperties.ts | |
| parent | 1cf241544f8063e3d71406238a584299b6ced794 (diff) | |
a bunch more fixes to making things observable. fixed calling super.componentDidUpdate on subsclasses
Diffstat (limited to 'src/client/views/InkStrokeProperties.ts')
| -rw-r--r-- | src/client/views/InkStrokeProperties.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/InkStrokeProperties.ts b/src/client/views/InkStrokeProperties.ts index 884c74f9b..69c663a3e 100644 --- a/src/client/views/InkStrokeProperties.ts +++ b/src/client/views/InkStrokeProperties.ts @@ -1,5 +1,5 @@ import { Bezier } from 'bezier-js'; -import { action, observable, reaction } from 'mobx'; +import { action, makeObservable, observable, reaction } from 'mobx'; import { Doc, NumListCast, Opt } from '../../fields/Doc'; import { InkData, InkField, InkTool, PointData } from '../../fields/InkField'; import { List } from '../../fields/List'; @@ -25,6 +25,7 @@ export class InkStrokeProperties { constructor() { InkStrokeProperties._Instance = this; + makeObservable(this); reaction( () => this._controlButton, button => button && (Doc.ActiveTool = InkTool.None) |
