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

20 lines
492 B
JavaScript

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",
clickOutside() { this.close(); },
didSelectValue() {
this._super();
this.blur();
}
});