A platform for community discussion. Free, open, simple.
FIX: ensures we have a cooked to work with (#33439)
Joffrey JAFFEUX6084c9e7d531
diff --git a/app/assets/javascripts/discourse/app/components/post-text-selection.gjs b/app/assets/javascripts/discourse/app/components/post-text-selection.gjsindex a27604833fb..e29ef7b115a 100644--- a/app/assets/javascripts/discourse/app/components/post-text-selection.gjs+++ b/app/assets/javascripts/discourse/app/components/post-text-selection.gjs@@ -245,6 +245,10 @@ export default class PostTextSelection extends Component {".cooked");+ if (!cooked) {+ return;+ }+if (cooked.closest(".small-action")) {return;}