mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FIX: improves category/tag drops header shortcuts (#6610)
- wont appear when filtering - can now be selected with keyboard - fix bugs on click with safari/firefox
This commit is contained in:
parent
fc95f772bc
commit
9911a41f4c
10 changed files with 145 additions and 83 deletions
|
@ -887,3 +887,26 @@ componentTest("onDeselect", {
|
|||
);
|
||||
}
|
||||
});
|
||||
|
||||
componentTest("noopRow", {
|
||||
template: "{{single-select value=value content=content}}",
|
||||
|
||||
beforeEach() {
|
||||
this.set("value", "blue");
|
||||
this.set("content", [
|
||||
{ id: "red", name: "Red", __sk_row_type: "noopRow" },
|
||||
"blue",
|
||||
"green"
|
||||
]);
|
||||
},
|
||||
|
||||
async test(assert) {
|
||||
await this.get("subject").expand();
|
||||
await this.get("subject").selectRowByValue("red");
|
||||
assert.equal(this.get("value"), "blue", "it doesn’t change the value");
|
||||
|
||||
await this.get("subject").expand();
|
||||
await this.get("subject").selectRowByValue("green");
|
||||
assert.equal(this.get("value"), "green");
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue