mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 10:33:51 +08:00
DEV: allows a sk component to stop click propagation (#9495)
This commit is contained in:
parent
79058a6d99
commit
62459c845f
|
@ -123,7 +123,9 @@ export default Component.extend(
|
|||
},
|
||||
|
||||
click(event) {
|
||||
event.stopPropagation();
|
||||
if (this.selectKit.options.preventsClickPropagation) {
|
||||
event.stopPropagation();
|
||||
}
|
||||
},
|
||||
|
||||
_modifyComponentForRowWrapper(collection, item) {
|
||||
|
@ -270,7 +272,8 @@ export default Component.extend(
|
|||
placementStrategy: null,
|
||||
filterComponent: "select-kit/select-kit-filter",
|
||||
selectedNameComponent: "selected-name",
|
||||
castInteger: false
|
||||
castInteger: false,
|
||||
preventsClickPropagation: false
|
||||
},
|
||||
|
||||
autoFilterable: computed("content.[]", "selectKit.filter", function() {
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
options=(hash
|
||||
showFullTitle=showFullTitle
|
||||
placement=placement
|
||||
preventsClickPropagation=true
|
||||
)
|
||||
}}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user