diff --git a/app/assets/javascripts/select-kit/addon/components/categories-admin-dropdown.js b/app/assets/javascripts/select-kit/addon/components/categories-admin-dropdown.js index d8ea039ffd7..22741584105 100644 --- a/app/assets/javascripts/select-kit/addon/components/categories-admin-dropdown.js +++ b/app/assets/javascripts/select-kit/addon/components/categories-admin-dropdown.js @@ -36,5 +36,13 @@ export default DropdownSelectBoxComponent.extend({ } return items; - }) + }), + + _onChange(value, item) { + if (item.onChange) { + item.onChange(value, item); + } else if (this.attrs.onChange) { + this.attrs.onChange(value, item); + } + } });