mirror of
https://github.com/discourse/discourse.git
synced 2024-12-02 08:43:38 +08:00
1ada3a9404
Context: https://deprecations.emberjs.com/v3.x/#toc_deprecated-run-loop-and-computed-dot-access
18 lines
497 B
JavaScript
18 lines
497 B
JavaScript
import SingleSelectComponent from "select-kit/components/single-select";
|
|
import { gte } from "@ember/object/computed";
|
|
|
|
export default SingleSelectComponent.extend({
|
|
pluginApiIdentifiers: ["combo-box"],
|
|
classNames: ["combobox", "combo-box"],
|
|
|
|
selectKitOptions: {
|
|
caretUpIcon: "caret-up",
|
|
caretDownIcon: "caret-down",
|
|
autoFilterable: "autoFilterable",
|
|
clearable: false,
|
|
headerComponent: "combo-box/combo-box-header",
|
|
},
|
|
|
|
autoFilterable: gte("content.length", 10),
|
|
});
|