diff options
author | bob <bcz@cs.brown.edu> | 2019-11-13 13:46:23 -0500 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-11-13 13:46:23 -0500 |
commit | a93ee99c9dd3b5ecc5160f98f9dffeb119b4dcce (patch) | |
tree | 114939a0d16ab2ca0698565049a0e5e60fe35ebd /src/client/views/nodes/FormattedTextBox.tsx | |
parent | e1930a62304db60d9eca542148995c5d03b79aea (diff) |
fixed recentlyClosed on startup and added clearAll. fixed textbox comment layout a bit.
Diffstat (limited to 'src/client/views/nodes/FormattedTextBox.tsx')
-rw-r--r-- | src/client/views/nodes/FormattedTextBox.tsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/client/views/nodes/FormattedTextBox.tsx b/src/client/views/nodes/FormattedTextBox.tsx index 65a51b357..8b1e65663 100644 --- a/src/client/views/nodes/FormattedTextBox.tsx +++ b/src/client/views/nodes/FormattedTextBox.tsx @@ -843,7 +843,10 @@ export class FormattedTextBox extends DocExtendableComponent<(FieldViewProps & F } onPointerUp = (e: React.PointerEvent): void => { - if (!(e.nativeEvent as any).formattedHandled) { FormattedTextBoxComment.textBox = this; } + if (!(e.nativeEvent as any).formattedHandled) { + FormattedTextBoxComment.textBox = this; + FormattedTextBoxComment.update(this._editorView!); + } (e.nativeEvent as any).formattedHandled = true; if (e.buttons === 1 && this.props.isSelected() && !e.altKey) { |