diff options
author | bob <bcz@cs.brown.edu> | 2019-10-11 10:15:29 -0400 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-10-11 10:15:29 -0400 |
commit | e6be0feda60963d28838d9fe7c79bf40cde6bc62 (patch) | |
tree | d148940cdca5da0020620c2040a646424feb1494 /src/client/views/nodes/FormattedTextBoxComment.tsx | |
parent | 11f1fc68532bb75a231b7b697ccd6e5007a2b3f1 (diff) |
added highlighting other's text. fixed some exceptions with text highlighitng.
Diffstat (limited to 'src/client/views/nodes/FormattedTextBoxComment.tsx')
-rw-r--r-- | src/client/views/nodes/FormattedTextBoxComment.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/FormattedTextBoxComment.tsx b/src/client/views/nodes/FormattedTextBoxComment.tsx index a75bfd373..bde278be3 100644 --- a/src/client/views/nodes/FormattedTextBoxComment.tsx +++ b/src/client/views/nodes/FormattedTextBoxComment.tsx @@ -93,7 +93,7 @@ export class FormattedTextBoxComment { if (lastState && lastState.doc.eq(state.doc) && lastState.selection.eq(state.selection)) return; - if (!FormattedTextBoxComment.textBox || !FormattedTextBoxComment.textBox.props.isSelected()) return; + if (!FormattedTextBoxComment.textBox || !FormattedTextBoxComment.textBox.props || !FormattedTextBoxComment.textBox.props.isSelected()) return; let set = "none"; if (FormattedTextBoxComment.textBox && state.selection.$from) { let nbef = findStartOfMark(state.selection.$from, view, findOtherUserMark); |