FIX: call onSelect plugin callbacks for noop rows (#6682)

This commit is contained in:
Joffrey JAFFEUX
2018-11-29 15:56:19 +01:00
committed by GitHub
parent 6b433b66f5
commit 8da8f5d0f7
4 changed files with 64 additions and 1 deletions

View File

@ -488,7 +488,10 @@ componentTest("support modifying on select behavior through plugin api", {
});
});
this.set("content", [{ id: "1", name: "robin" }]);
this.set("content", [
{ id: "1", name: "robin" },
{ id: "2", name: "arpit", __sk_row_type: "noopRow" }
]);
},
async test(assert) {
@ -497,6 +500,15 @@ componentTest("support modifying on select behavior through plugin api", {
assert.equal(find(".on-select-test").html(), "1");
await this.get("subject").expand();
await this.get("subject").selectRowByValue(2);
assert.equal(
find(".on-select-test").html(),
"2",
"it calls onSelect for noopRows"
);
clearCallbacks();
}
});