mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FIX: display select kit body if no choices (#6237)
This commit is contained in:
parent
74269ad585
commit
c301111461
5 changed files with 35 additions and 23 deletions
|
@ -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"));
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue