diff options
author | geireann <60007097+geireann@users.noreply.github.com> | 2020-12-02 18:57:14 +0800 |
---|---|---|
committer | geireann <60007097+geireann@users.noreply.github.com> | 2020-12-02 18:57:14 +0800 |
commit | 96c84d0b180cf9721b38c4776112d26070eaed87 (patch) | |
tree | fcbe87192d3416db214645a53486c2f057e4f6e2 /src | |
parent | 69f247903d289aeac6383ba3a6912504a6172873 (diff) | |
parent | 23290bd8a8d1cb1f1254a7b600bdc6f540caf52e (diff) |
Merge branch 'master' into presentation_v1
Diffstat (limited to 'src')
-rw-r--r-- | src/client/views/nodes/formattedText/FormattedTextBox.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/views/nodes/formattedText/FormattedTextBox.tsx b/src/client/views/nodes/formattedText/FormattedTextBox.tsx index 5017d21f1..97a45892a 100644 --- a/src/client/views/nodes/formattedText/FormattedTextBox.tsx +++ b/src/client/views/nodes/formattedText/FormattedTextBox.tsx @@ -1472,7 +1472,9 @@ export class FormattedTextBox extends ViewBoxAnnotatableComponent<(FieldViewProp public static LiveTextUndo: UndoManager.Batch | undefined; public static HadSelection: boolean = false; onBlur = (e: any) => { - RichTextMenu.Instance?.updateMenu(undefined, undefined, undefined); + if (RichTextMenu.Instance?.view === this._editorView && !this.props.isSelected(true)) { + RichTextMenu.Instance?.updateMenu(undefined, undefined, undefined); + } FormattedTextBox.HadSelection = window.getSelection()?.toString() !== ""; this.endUndoTypingBatch(); this.doLinkOnDeselect(); |