FIX: Prevent default event and stop bubbling up when card popup is closed in mobile

FIX: Prevent default event and stop bubbling up when card popup is closed in mobile

diff --git a/app/assets/javascripts/discourse/mixins/card-contents-base.js.es6 b/app/assets/javascripts/discourse/mixins/card-contents-base.js.es6
index 954fcaf..ce110da 100644
--- a/app/assets/javascripts/discourse/mixins/card-contents-base.js.es6
+++ b/app/assets/javascripts/discourse/mixins/card-contents-base.js.es6
@@ -97,6 +97,10 @@ export default Ember.Mixin.create({
           }
 
           this._close();
+
+          if (this.site.mobileView) {
+            return false;
+          }
         }
 
         return true;

GitHub sha: be436066

1 Like

This commit has been mentioned on Discourse Meta. There might be relevant details there:

This commit has been mentioned on Discourse Meta. There might be relevant details there: