mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
Replaces remaining {{category-chooser}} by {{category-select-box}}
To achieve replacement, this commit also adds support for: - clearSelectionLabel which will allows to unselect any chosen category - select-box inside a modal - fixes minor css positioning issues Note: {{category-chooser}} will be removed in the next weeks.
This commit is contained in:
@ -222,7 +222,7 @@ componentTest('persists filter state when expandind/collapsing', {
|
||||
});
|
||||
|
||||
componentTest('supports options to limit size', {
|
||||
template: '{{select-box width=50 maxCollectionHeight=20 content=content}}',
|
||||
template: '{{select-box maxCollectionHeight=20 content=content}}',
|
||||
|
||||
beforeEach() {
|
||||
this.set("content", [{ id: 1, text: "robin" }]);
|
||||
@ -233,7 +233,6 @@ componentTest('supports options to limit size', {
|
||||
|
||||
andThen(() => {
|
||||
assert.equal(find(".select-box-body").height(), 20, "it limits the height");
|
||||
assert.equal(find(".select-box").width(), 50, "it limits the width");
|
||||
});
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user