easy-email-pro-theme 1.37.0 → 1.37.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +7 -0
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -813,6 +813,13 @@ const DraggingProvider = ({
|
|
|
813
813
|
return false;
|
|
814
814
|
if (NodeUtils.isUnsetElement(node2))
|
|
815
815
|
return false;
|
|
816
|
+
const voidElementEntry = Editor.above(editor, {
|
|
817
|
+
match: NodeUtils.isVoidBlockElement,
|
|
818
|
+
at: path2
|
|
819
|
+
});
|
|
820
|
+
if (voidElementEntry) {
|
|
821
|
+
return false;
|
|
822
|
+
}
|
|
816
823
|
if (NodeUtils.isParentCategoryType(
|
|
817
824
|
propsData.element.type,
|
|
818
825
|
node2.type
|