A platform for community discussion. Free, open, simple.
FIX: correctly clear the quote state (#23705)
Joffrey JAFFEUXa441f0790849
diff --git a/app/assets/javascripts/discourse/app/components/post-text-selection.gjs b/app/assets/javascripts/discourse/app/components/post-text-selection.gjsindex 47a6ea59776..3a36bf683bf 100644--- a/app/assets/javascripts/discourse/app/components/post-text-selection.gjs+++ b/app/assets/javascripts/discourse/app/components/post-text-selection.gjs@@ -102,6 +102,9 @@ export default class PostTextSelection extends Component {const selection = window.getSelection();if (selection.isCollapsed) {+ if (!this.menuInstance?.expanded) {+ this.args.quoteState.clear();+ }return;}