diff options
author | bobzel <zzzman@gmail.com> | 2024-09-17 18:31:09 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2024-09-17 18:31:09 -0400 |
commit | 0653464370398188b23bb490c16b5a2ccf0300c3 (patch) | |
tree | 3dff6b5a05b6e4f5d3ad489b3e34ece487b836ac /src/client/views/nodes/formattedText/RichTextMenu.tsx | |
parent | 35d19c29c2f628792a379534df6d5760e49cfb8f (diff) | |
parent | 4f2ee4a8642a93fb399b979750078374b317af32 (diff) |
merged with master + cleanup of carousel code
Diffstat (limited to 'src/client/views/nodes/formattedText/RichTextMenu.tsx')
-rw-r--r-- | src/client/views/nodes/formattedText/RichTextMenu.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/nodes/formattedText/RichTextMenu.tsx b/src/client/views/nodes/formattedText/RichTextMenu.tsx index 738f6d699..3ec799836 100644 --- a/src/client/views/nodes/formattedText/RichTextMenu.tsx +++ b/src/client/views/nodes/formattedText/RichTextMenu.tsx @@ -1,6 +1,6 @@ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { Tooltip } from '@mui/material'; -import { action, computed, IReactionDisposer, makeObservable, observable } from 'mobx'; +import { action, computed, IReactionDisposer, makeObservable, observable, runInAction } from 'mobx'; import { observer } from 'mobx-react'; import { lift, toggleMark, wrapIn } from 'prosemirror-commands'; import { Mark, MarkType } from 'prosemirror-model'; @@ -68,7 +68,7 @@ export class RichTextMenu extends AntimodeMenu<AntimodeMenuProps> { constructor(props: AntimodeMenuProps) { super(props); makeObservable(this); - RichTextMenu._instance.menu = this; + runInAction(() => (RichTextMenu._instance.menu = this)); this.updateMenu(undefined, undefined, props, this.layoutDoc); this._canFade = false; this.Pinned = true; |