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 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; }