mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 12:41:25 +08:00
FIX: display select kit body if no choices (#6237)
This commit is contained in:
@ -726,3 +726,22 @@ componentTest("with accents in content", {
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
componentTest("with no content and allowAny", {
|
||||
template: "{{single-select allowAny=true}}",
|
||||
|
||||
async test(assert) {
|
||||
await click(
|
||||
this.get("subject")
|
||||
.header()
|
||||
.el()
|
||||
);
|
||||
|
||||
const $filter = this.get("subject")
|
||||
.filter()
|
||||
.el();
|
||||
|
||||
assert.ok($filter.hasClass("is-focused"));
|
||||
assert.ok(!$filter.hasClass("is-hidden"));
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user