Skip to content

Commit 39ec853

Browse files
committed
MC-3309: Build stabilization
Explicitly cast to string
1 parent a8ea7a1 commit 39ec853

File tree

2 files changed

+7
-3
lines changed
  • app/code/Magento/PageBuilder/view

2 files changed

+7
-3
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export default class Preview extends BasePreview {
5151
*/
5252
private onFocus() {
5353
$(this.element).closest(
54-
this.config.additional_data.wysiwygConfig.parentSelectorsToUnderlay.join(","),
54+
this.config.additional_data.wysiwygConfig.parentSelectorsToUnderlay.join(",") as string,
5555
).css("z-index", 100);
5656
}
5757

@@ -61,7 +61,7 @@ export default class Preview extends BasePreview {
6161
*/
6262
private onBlur() {
6363
$(this.element).closest(
64-
this.config.additional_data.wysiwygConfig.parentSelectorsToUnderlay.join(","),
64+
this.config.additional_data.wysiwygConfig.parentSelectorsToUnderlay.join(",") as string,
6565
).css("z-index", "");
6666
}
6767
}

app/code/Magento/PageBuilder/view/base/web/js/events.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,11 @@ define(['uiEvents'], function (uiEvents) {
4242
* @returns {Boolean}
4343
*/
4444
trigger: function (name, args) {
45-
return uiEvents.trigger('pagebuilder:' + name, args);
45+
// console.log(`START triggering pagebuilder:${name}`, args);
46+
var result = uiEvents.trigger('pagebuilder:' + name, args);
47+
// console.log(`DONE triggering pagebuilder:${name}`);
48+
49+
return result;
4650
}
4751
};
4852
});

0 commit comments

Comments
 (0)