Skip to content

A platform for community discussion. Free, open, simple.

UX: do not close post text selection on scroll (#26217)

Joffrey JAFFEUX5e3bc594c6b7
diff --git a/app/assets/javascripts/discourse/app/components/post-text-selection.gjs b/app/assets/javascripts/discourse/app/components/post-text-selection.gjs
index d1844773363..5bfb62e8a83 100644
--- a/app/assets/javascripts/discourse/app/components/post-text-selection.gjs
+++ b/app/assets/javascripts/discourse/app/components/post-text-selection.gjs
@@ -194,6 +194,7 @@ export default class PostTextSelection extends Component {
: ["bottom-start"],
offset: this.shouldRenderUnder ? 25 : 3,
trapTab: false,
+ closeOnScroll: false,
data: {
canEditPost: this.canEditPost,
canCopyQuote: this.canCopyQuote,