Skip to content

Commit 1662a1a

Browse files
authored
Merge pull request #5566 from nextcloud/fix/linkbubble_scroll_handler
fix(LinkBubble): Limit hide on scroll to div elements
2 parents 49601c7 + daac91d commit 1662a1a

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/plugins/LinkBubblePluginView.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,16 @@ class LinkBubblePluginView {
2525
}
2626

2727
dragOrScrollHandler = (event) => {
28+
// Only hide when scrolling on `<div>` (not .e.g. on `<input>`)
29+
if (event.target.nodeName !== 'DIV') {
30+
return
31+
}
32+
2833
// Cypress fires unexpected scroll events, which breaks testing the link bubble
2934
if (window.Cypress) {
3035
return
3136
}
37+
3238
this.hide()
3339
}
3440

0 commit comments

Comments
 (0)