diff options
author | bobzel <zzzman@gmail.com> | 2021-04-09 14:54:16 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2021-04-09 14:54:16 -0400 |
commit | 9580ca6da48fe69cc664bc12513737c00a88f880 (patch) | |
tree | cf985f66fe1c131648a8e405ec44a4461ba96fdf | |
parent | f7879dfb8086fc9819861b69a34127d6237f407b (diff) |
fix for disappearing anchor menu when dictating and highlighting a pdf/web .
-rw-r--r-- | src/client/views/nodes/formattedText/FormattedTextBox.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/formattedText/FormattedTextBox.tsx b/src/client/views/nodes/formattedText/FormattedTextBox.tsx index 1e901c0aa..c2860af76 100644 --- a/src/client/views/nodes/formattedText/FormattedTextBox.tsx +++ b/src/client/views/nodes/formattedText/FormattedTextBox.tsx @@ -297,7 +297,7 @@ export class FormattedTextBox extends ViewBoxAnnotatableComponent<(FieldViewProp this._editorView.updateState(EditorState.fromJSON(this.config, json)); } } - if (window.getSelection()?.isCollapsed && this.props.isSelected) { + if (window.getSelection()?.isCollapsed && this.props.isSelected()) { AnchorMenu.Instance.fadeOut(true); } } |