diff --git a/src/components/Link/LinkBubbleView.vue b/src/components/Link/LinkBubbleView.vue index 4d65279dd8b..89158031bb8 100644 --- a/src/components/Link/LinkBubbleView.vue +++ b/src/components/Link/LinkBubbleView.vue @@ -224,6 +224,7 @@ export default { removeLink() { this.editor.chain() + // Explicitly hide bubble to prevent flickering before it's removed .hideLinkBubble() .unsetLink() .focus() diff --git a/src/plugins/links.js b/src/plugins/links.js index 82ff913ac1d..f090de3eba9 100644 --- a/src/plugins/links.js +++ b/src/plugins/links.js @@ -95,7 +95,7 @@ export function linkBubble(options) { const sameSelection = oldState?.selection.eq(state.selection) const sameDoc = oldState?.doc.eq(state.doc) // Don't open bubble on changes by other session members - const noHistory = !transactions.some(tr => tr.meta.addToHistory) + const noHistory = transactions.every(tr => tr.meta.addToHistory === false) if (sameSelection && (noHistory || sameDoc)) { return }