fix: Tweaks to hover card behavior

This commit is contained in:
Tom Moor
2023-07-22 12:47:01 -04:00
parent 5d71398ea6
commit 5e705f3dc7
4 changed files with 46 additions and 22 deletions

View File

@@ -91,7 +91,7 @@ export default class Mention extends Suggestion {
if (
target instanceof HTMLSpanElement &&
this.editor.elementRef.current?.contains(target) &&
!target.className.includes("ProseMirror-widget") &&
target.className.includes("mention") &&
(!view.editable || (view.editable && !view.hasFocus()))
) {
if (this.options.onHoverLink) {