diff options
author | geireann <60007097+geireann@users.noreply.github.com> | 2021-04-09 11:53:48 -0400 |
---|---|---|
committer | geireann <60007097+geireann@users.noreply.github.com> | 2021-04-09 11:53:48 -0400 |
commit | 5d01963d349272e4a2bd38083769b3f1d0a392bc (patch) | |
tree | 85a2c02e6c2c73aae2c7cd6b062c08434e342f7e /src/client/views/nodes/formattedText/FormattedTextBox.tsx | |
parent | 017abddfe1604eeb22d51e18d77d5cf62fcb61bd (diff) |
pres box audio 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); + } } } |