diff options
author | bobzel <zzzman@gmail.com> | 2021-04-09 12:22:43 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2021-04-09 12:22:43 -0400 |
commit | ec7d80efb92cec862b62665eb6a7af98fff73765 (patch) | |
tree | 093e68d454fe1642493df2e222706f26862e2954 /src/client/views/nodes/formattedText/FormattedTextBox.tsx | |
parent | 813dcbeaf3359dc184067f597e731b44a0446e1b (diff) | |
parent | fad5449e1b73914e168cf97b363c75dd6a7d15fa (diff) |
Merge branch 'demo_changes' of https://github.com/browngraphicslab/Dash-Web into demo_changes
Diffstat (limited to 'src/client/views/nodes/formattedText/FormattedTextBox.tsx')
-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 9482b632a..1e901c0aa 100644 --- a/src/client/views/nodes/formattedText/FormattedTextBox.tsx +++ b/src/client/views/nodes/formattedText/FormattedTextBox.tsx @@ -297,7 +297,9 @@ export class FormattedTextBox extends ViewBoxAnnotatableComponent<(FieldViewProp this._editorView.updateState(EditorState.fromJSON(this.config, json)); } } - if (window.getSelection()?.isCollapsed) AnchorMenu.Instance.fadeOut(true); + if (window.getSelection()?.isCollapsed && this.props.isSelected) { + AnchorMenu.Instance.fadeOut(true); + } } } |