Skip to content

Commit e769130

Browse files
committed
MC-13922: [Sec] XSS Injection in Admin For Map Location Attributes, Image Caption, Slide Name
- Resolve issue with columns breaking rows after an additional column being added
1 parent 1dc34cc commit e769130

File tree

2 files changed

+14
-1
lines changed
  • app/code/Magento/PageBuilder/view/adminhtml/web

2 files changed

+14
-1
lines changed

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

Lines changed: 7 additions & 1 deletion
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: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -594,6 +594,13 @@ export default class Preview extends PreviewCollection {
594594
if (this.dropOverElement && this.dropPosition) {
595595
this.onNewColumnDrop(this.dropPosition);
596596
this.dropOverElement = null;
597+
598+
// Re-enable the parent disabled sortable instance
599+
_.defer(() => {
600+
$(".element-children.ui-sortable-disabled").each(function() {
601+
$(this).sortable("option", "disabled", false);
602+
});
603+
});
597604
}
598605

599606
const column = getDragColumn();

0 commit comments

Comments
 (0)