DEV: allows click to propagate outside of header but not outside of sk (#9491)

DEV: allows click to propagate outside of header but not outside of sk (#9491)

diff --git a/app/assets/javascripts/select-kit/components/select-kit.js b/app/assets/javascripts/select-kit/components/select-kit.js
index 828ee6c..7898179 100644
--- a/app/assets/javascripts/select-kit/components/select-kit.js
+++ b/app/assets/javascripts/select-kit/components/select-kit.js
@@ -122,6 +122,10 @@ export default Component.extend(
       );
     },
 
+    click(event) {
+      event.stopPropagation();
+    },
+
     _modifyComponentForRowWrapper(collection, item) {
       let component = this.modifyComponentForRow(collection, item);
       return component || "select-kit/select-kit-row";
diff --git a/app/assets/javascripts/select-kit/components/select-kit/select-kit-header.js b/app/assets/javascripts/select-kit/components/select-kit/select-kit-header.js
index 6ec3984..61f57d1 100644
--- a/app/assets/javascripts/select-kit/components/select-kit/select-kit-header.js
+++ b/app/assets/javascripts/select-kit/components/select-kit/select-kit-header.js
@@ -13,7 +13,7 @@ export default Component.extend(UtilsMixin, {
       return;
     if (this.eventType !== "click" || event.button !== 0) return;
     this.selectKit.toggle(event);
-    return false;
+    event.preventDefault();
   },
 
   classNames: ["select-kit-header"],

GitHub sha: 4f834f00

This commit appears in #9491 which was merged by jjaffeux.