aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/formattedText/FormattedTextBoxComment.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2021-02-28 12:49:44 -0500
committerbobzel <zzzman@gmail.com>2021-02-28 12:49:44 -0500
commit0c33f25e18279a27a62ddfaba36d04dab86a4ca5 (patch)
tree59977331b477369d4d6ddc4a04bbde70d0e0b6c0 /src/client/views/nodes/formattedText/FormattedTextBoxComment.tsx
parenta8f5189834987707586a5415409b5f1556eff7b5 (diff)
fixed linkondeselect tempoararily. fixed following hypertext links that are not on the lowest level span
Diffstat (limited to 'src/client/views/nodes/formattedText/FormattedTextBoxComment.tsx')
-rw-r--r--src/client/views/nodes/formattedText/FormattedTextBoxComment.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/formattedText/FormattedTextBoxComment.tsx b/src/client/views/nodes/formattedText/FormattedTextBoxComment.tsx
index 15c669338..6821935a0 100644
--- a/src/client/views/nodes/formattedText/FormattedTextBoxComment.tsx
+++ b/src/client/views/nodes/formattedText/FormattedTextBoxComment.tsx
@@ -85,7 +85,7 @@ export class FormattedTextBoxComment {
static update(textBox: FormattedTextBox, view: EditorView, lastState?: EditorState, hrefs: string = "") {
FormattedTextBoxComment.textBox = textBox;
if ((hrefs || !lastState?.doc.eq(view.state.doc) || !lastState?.selection.eq(view.state.selection))) {
- FormattedTextBoxComment.setupPreview(view, textBox, hrefs ? hrefs.trim().split(" ") : undefined);
+ FormattedTextBoxComment.setupPreview(view, textBox, hrefs?.trim().split(" "));
}
}