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

This commit is contained in:
Joffrey JAFFEUX 2020-04-21 16:20:05 +02:00 committed by GitHub
parent 6559ad0d80
commit 4f834f0008
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -122,6 +122,10 @@ export default Component.extend(
); );
}, },
click(event) {
event.stopPropagation();
},
_modifyComponentForRowWrapper(collection, item) { _modifyComponentForRowWrapper(collection, item) {
let component = this.modifyComponentForRow(collection, item); let component = this.modifyComponentForRow(collection, item);
return component || "select-kit/select-kit-row"; return component || "select-kit/select-kit-row";

View File

@ -13,7 +13,7 @@ export default Component.extend(UtilsMixin, {
return; return;
if (this.eventType !== "click" || event.button !== 0) return; if (this.eventType !== "click" || event.button !== 0) return;
this.selectKit.toggle(event); this.selectKit.toggle(event);
return false; event.preventDefault();
}, },
classNames: ["select-kit-header"], classNames: ["select-kit-header"],