FIX: display select kit body if no choices (#6237)

This commit is contained in:
Joffrey JAFFEUX
2018-08-06 11:22:48 -04:00
committed by GitHub
parent 74269ad585
commit c301111461
5 changed files with 35 additions and 23 deletions

View File

@ -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"));
}
});