From 6d41c37c16a0b6acf1fbfccfc4e0530001c76608 Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Tue, 10 Aug 2021 15:52:59 +0200 Subject: [PATCH] DEV: stop propagation of events on button click (#13993) --- app/assets/javascripts/discourse/app/components/d-button.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/assets/javascripts/discourse/app/components/d-button.js b/app/assets/javascripts/discourse/app/components/d-button.js index 5c76b4e6868..36987bebb3d 100644 --- a/app/assets/javascripts/discourse/app/components/d-button.js +++ b/app/assets/javascripts/discourse/app/components/d-button.js @@ -132,6 +132,8 @@ export default Component.extend({ DiscourseURL.routeTo(this.href); } + event.stopPropagation(); + return false; },