DEV: allows a sk component to stop click propagation (#9495)

This commit is contained in:
Joffrey JAFFEUX 2020-04-21 17:11:40 +02:00 committed by GitHub
parent 79058a6d99
commit 62459c845f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -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() {

View File

@ -5,6 +5,7 @@
options=(hash
showFullTitle=showFullTitle
placement=placement
preventsClickPropagation=true
)
}}