Skip to content

Commit 5cb9c01

Browse files
authored
Merge pull request #5954 from nextcloud/fix/link_bubble_nohistory
fix(LinkBubble): Fix logic to detect transactions without history
2 parents d578f35 + 81e0a34 commit 5cb9c01

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/components/Link/LinkBubbleView.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ export default {
229229
230230
removeLink() {
231231
this.editor.chain()
232+
// Explicitly hide bubble to prevent flickering before it's removed
232233
.hideLinkBubble()
233234
.unsetLink()
234235
.focus()

src/plugins/links.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export function linkBubble(options) {
7878
const sameSelection = oldState?.selection.eq(state.selection)
7979
const sameDoc = oldState?.doc.eq(state.doc)
8080
// Don't open bubble on changes by other session members
81-
const noHistory = !transactions.some(tr => tr.meta.addToHistory)
81+
const noHistory = transactions.every(tr => tr.meta.addToHistory === false)
8282
if (sameSelection && (noHistory || sameDoc)) {
8383
return
8484
}

0 commit comments

Comments
 (0)