REFACTOR: s/focusAfterOnchange/focusAfterOnChange (#9801)

REFACTOR: s/focusAfterOnchange/focusAfterOnChange (#9801)

diff --git a/app/assets/javascripts/discourse/app/templates/components/d-editor.hbs b/app/assets/javascripts/discourse/app/templates/components/d-editor.hbs
index 10b4eb6..369acfd 100644
--- a/app/assets/javascripts/discourse/app/templates/components/d-editor.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/d-editor.hbs
@@ -12,7 +12,7 @@
               options=(hash
                 popupTitle=b.title
                 icon=b.icon
-                focusAfterOnchange=false
+                focusAfterOnChange=false
               )
             }}
           {{else}}
diff --git a/app/assets/javascripts/select-kit/app/components/select-kit.js b/app/assets/javascripts/select-kit/app/components/select-kit.js
index 43905d5..f2fbbbf 100644
--- a/app/assets/javascripts/select-kit/app/components/select-kit.js
+++ b/app/assets/javascripts/select-kit/app/components/select-kit.js
@@ -271,7 +271,7 @@ export default Component.extend(
       selectedNameComponent: "selected-name",
       castInteger: false,
       preventsClickPropagation: false,
-      focusAfterOnchange: true
+      focusAfterOnChange: true
     },
 
     autoFilterable: computed("content.[]", "selectKit.filter", function() {
@@ -430,7 +430,7 @@ export default Component.extend(
             this.selectKit.close();
           }
 
-          if (this.selectKit.options.focusAfterOnchange) {
+          if (this.selectKit.options.focusAfterOnChange) {
             this._safeAfterRender(() => {
               this._focusFilter();
               this.popper && this.popper.update();
diff --git a/test/javascripts/components/select-kit/single-select-test.js b/test/javascripts/components/select-kit/single-select-test.js
index ca041c1..cb89c59 100644
--- a/test/javascripts/components/select-kit/single-select-test.js
+++ b/test/javascripts/components/select-kit/single-select-test.js
@@ -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);

GitHub sha: e81a4048

This commit appears in #9801 which was merged by jjaffeux.