mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: allows click to propagate outside of header but not outside of sk (#9491)
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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"],
|
||||
|
||||
Reference in New Issue
Block a user