Skip to content

Commit d0ade18

Browse files
committed
MC-3653: Can Drag & Drop Child Content Types Into Hidden Content Types
- Fix issue of dragging from panel into hidden content
1 parent e55ad1e commit d0ade18

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

app/code/Magento/PageBuilder/view/adminhtml/web/js/drag-drop/sortable.js

Lines changed: 1 addition & 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/collection.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import ContentTypeCollectionInterface from "./content-type-collection.d";
88
import ContentTypeInterface from "./content-type.d";
99
import { moveArrayItemIntoArray, removeArrayItem } from "./utils/array";
1010

11-
1211
/**
1312
* @api
1413
*/

app/code/Magento/PageBuilder/view/adminhtml/web/ts/js/drag-drop/sortable.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ function onSortStop(preview: Preview, event: Event, ui: JQueryUI.SortableUIParam
168168
events.trigger("stage:interactionStop");
169169
}
170170

171-
if (ui.item && sortedContentType === null) {
171+
if (ui.item && !sortedContentType) {
172172
ui.item.remove();
173173
}
174174

0 commit comments

Comments
 (0)