diff options
author | bob <bcz@cs.brown.edu> | 2019-06-18 13:03:28 -0400 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-06-18 13:03:28 -0400 |
commit | 3a25bad918c72f5d6de9a720de9e0d316c00f2fe (patch) | |
tree | be5cad10de4f5243f387874fc851dcb4c23b1067 /src/client/views/nodes/FormattedTextBox.tsx | |
parent | f4fcf306e2579b7479610899a01c06fb157d47de (diff) |
fixed issues with expanding text boxes that have a dynamic title
Diffstat (limited to 'src/client/views/nodes/FormattedTextBox.tsx')
-rw-r--r-- | src/client/views/nodes/FormattedTextBox.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/nodes/FormattedTextBox.tsx b/src/client/views/nodes/FormattedTextBox.tsx index aa44995ca..36d902c4f 100644 --- a/src/client/views/nodes/FormattedTextBox.tsx +++ b/src/client/views/nodes/FormattedTextBox.tsx @@ -1,6 +1,6 @@ import { library } from '@fortawesome/fontawesome-svg-core'; import { faEdit, faSmile } from '@fortawesome/free-solid-svg-icons'; -import { action, IReactionDisposer, observable, reaction } from "mobx"; +import { action, IReactionDisposer, observable, reaction, runInAction } from "mobx"; import { observer } from "mobx-react"; import { baseKeymap } from "prosemirror-commands"; import { history } from "prosemirror-history"; @@ -196,7 +196,7 @@ export class FormattedTextBox extends DocComponent<(FieldViewProps & FormattedTe FormattedTextBox.InputBoxOverlay = this; FormattedTextBox.InputBoxOverlayScroll = this._ref.current!.scrollTop; } - }); + }, { fireImmediately: true }); } this._reactionDisposer = reaction( |