Skip to content

Commit f2d5394

Browse files
author
Michael Yu
committed
MC-2422: Additional renames
- Updated focusChild events to childFocus
1 parent c586d1e commit f2d5394

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

app/code/Magento/PageBuilder/docs/events.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ This document contains reference information for events dispatched in Page Build
7373
* [stage:{{id}}:readyAfter](#stageidreadyafter)
7474
* [stage:{{id}}:masterFormatRenderAfter](#stageidmasterformatrenderafter)
7575
* [stage:updateAfter](#stageupdateafter)
76-
* [stage:focusChildStart](#stagefocuschildstart)
77-
* [stage:focusChildStop](#stagefocuschildstop)
76+
* [stage:childFocusStart](#stagechildfocusstart)
77+
* [stage:childFocusStop](#stagechildfocusstop)
7878
* [state](#state)
7979
* [{{config.name}}:{{id}}:updateAfter](#confignameidupdateafter)
8080
* [googleMaps:authFailure](#googlemapsauthFailure)
@@ -493,11 +493,11 @@ Error
493493

494494
[Back to top]
495495

496-
### `stage:focusChildStart`
496+
### `stage:childFocusStart`
497497

498498
[Back to top]
499499

500-
### `stage:focusChildStop`
500+
### `stage:childFocusStop`
501501

502502
[Back to top]
503503

app/code/Magento/PageBuilder/view/adminhtml/web/js/content-type/column-group/preview.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/code/Magento/PageBuilder/view/adminhtml/web/js/stage.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/code/Magento/PageBuilder/view/adminhtml/web/ts/js/content-type/column-group/preview.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ export default class Preview extends PreviewCollection {
444444
if (!this.gridSizeError()) {
445445
this.gridFormOpen(false);
446446
events.trigger("stage:interactionStop");
447-
events.trigger("stage:focusChildStop");
447+
events.trigger("stage:childFocusStop");
448448
$(document).off("click focusin", this.onDocumentClick);
449449
}
450450
}
@@ -464,7 +464,7 @@ export default class Preview extends PreviewCollection {
464464
}, 200);
465465
$(document).on("click focusin", this.onDocumentClick);
466466
events.trigger("stage:interactionStart");
467-
events.trigger("stage:focusChildStart");
467+
events.trigger("stage:childFocusStart");
468468
}
469469
}
470470

app/code/Magento/PageBuilder/view/adminhtml/web/ts/js/stage.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,8 @@ export default class Stage {
171171
events.on("stage:interactionStart", () => this.interacting(true));
172172
events.on("stage:interactionStop", () => this.interacting(false));
173173

174-
events.on("stage:focusChildStart", () => this.focusChild(true));
175-
events.on("stage:focusChildStop", () => this.focusChild(false));
174+
events.on("stage:childFocusStart", () => this.focusChild(true));
175+
events.on("stage:childFocusStop", () => this.focusChild(false));
176176
}
177177

178178
/**

0 commit comments

Comments
 (0)