discourse/app/assets/javascripts/select-kit/addon/components/dropdown-select-box.js
Joffrey JAFFEUX 904d509cce
FIX: ensures minimum tags logic is correct and shared (#14723)
Also fixes a bug where select-kit was not updating noneItem in multi-selects.
2021-11-12 14:04:48 +01:00

22 lines
585 B
JavaScript

import SingleSelectComponent from "select-kit/components/single-select";
export default SingleSelectComponent.extend({
pluginApiIdentifiers: ["dropdown-select-box"],
classNames: ["dropdown-select-box"],
selectKitOptions: {
autoFilterable: false,
filterable: false,
showFullTitle: true,
headerComponent: "dropdown-select-box/dropdown-select-box-header",
caretUpIcon: "caret-up",
caretDownIcon: "caret-down",
showCaret: false,
customStyle: null,
},
modifyComponentForRow() {
return "dropdown-select-box/dropdown-select-box-row";
},
});