discourse/app/assets/javascripts/select-box-kit/components/dropdown-select-box.js.es6

20 lines
492 B
Plaintext
Raw Normal View History

2017-10-19 15:51:08 -04:00
import SelectBoxKitComponent from "select-box-kit/components/select-box-kit";
export default SelectBoxKitComponent.extend({
classNames: "dropdown-select-box",
verticalOffset: 3,
fullWidthOnMobile: true,
filterable: false,
autoFilterable: false,
headerComponent: "dropdown-select-box/dropdown-select-box-header",
rowComponent: "dropdown-select-box/dropdown-select-box-row",
2017-11-09 13:57:53 -05:00
clickOutside() { this.close(); },
2017-10-19 15:51:08 -04:00
2017-11-09 13:57:53 -05:00
didSelectValue() {
this._super();
2017-10-19 15:51:08 -04:00
2017-11-09 13:57:53 -05:00
this.blur();
2017-10-19 15:51:08 -04:00
}
});