A platform for community discussion. Free, open, simple.
FIX: long pressing reactions-counter shouldn't open ReactionsPicker (#39774)
small-lovely-catb16f1abf2478
diff --git a/plugins/discourse-reactions/assets/javascripts/discourse/components/discourse-reactions-actions.gjs b/plugins/discourse-reactions/assets/javascripts/discourse/components/discourse-reactions-actions.gjsindex 09dee3b5916..d1db429a69c 100644--- a/plugins/discourse-reactions/assets/javascripts/discourse/components/discourse-reactions-actions.gjs+++ b/plugins/discourse-reactions/assets/javascripts/discourse/components/discourse-reactions-actions.gjs@@ -199,11 +199,17 @@ export default class DiscourseReactionsActions extends Component {}@action- touchStart() {- this._validTouch = true;+ touchStart(event) {+ this._validTouch = !!event.target.closest(+ ".discourse-reactions-reaction-button"+ );cancel(this._touchTimeout);+ if (!this._validTouch) {+ return false;+ }+if (this.capabilities.touch) {document.documentElement?.classList?.toggle("discourse-reactions-no-select",