mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 06:48:47 +08:00
REFACTOR: s/focusAfterOnchange/focusAfterOnChange (#9801)
This commit is contained in:
@ -261,7 +261,7 @@ componentTest("prevents propagating click event on header", {
|
||||
|
||||
componentTest("focusAfterOnChange", {
|
||||
template:
|
||||
"{{d-button class='focus-me'}}{{single-select options=(hash focusAfterOnchange=focusAfterOnchange) value=value content=content onChange=onChange}}",
|
||||
"{{d-button class='focus-me'}}{{single-select options=(hash focusAfterOnChange=focusAfterOnChange) value=value content=content onChange=onChange}}",
|
||||
|
||||
beforeEach() {
|
||||
this.setProperties({
|
||||
@ -275,7 +275,7 @@ componentTest("focusAfterOnChange", {
|
||||
},
|
||||
|
||||
async test(assert) {
|
||||
this.set("focusAfterOnchange", true);
|
||||
this.set("focusAfterOnChange", true);
|
||||
|
||||
await this.subject.expand();
|
||||
await this.subject.selectRowByIndex(0);
|
||||
@ -285,7 +285,7 @@ componentTest("focusAfterOnChange", {
|
||||
"it selects the header"
|
||||
);
|
||||
|
||||
this.set("focusAfterOnchange", false);
|
||||
this.set("focusAfterOnChange", false);
|
||||
|
||||
await this.subject.expand();
|
||||
await this.subject.selectRowByIndex(0);
|
||||
|
Reference in New Issue
Block a user