diff --git a/src/plugins/LinkBubblePluginView.js b/src/plugins/LinkBubblePluginView.js index a0b34a9596f..4310c20a595 100644 --- a/src/plugins/LinkBubblePluginView.js +++ b/src/plugins/LinkBubblePluginView.js @@ -25,10 +25,16 @@ class LinkBubblePluginView { } dragOrScrollHandler = (event) => { + // Only hide when scrolling on `
` (not .e.g. on ``) + if (event.target.nodeName !== 'DIV') { + return + } + // Cypress fires unexpected scroll events, which breaks testing the link bubble if (window.Cypress) { return } + this.hide() }