@node-projects/web-component-designer 0.0.135 → 0.0.136
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.
|
@@ -622,6 +622,8 @@ export class DesignerCanvas extends BaseCustomWebComponentLazyAppend {
|
|
|
622
622
|
this._dragOverExtensionItem = null;
|
|
623
623
|
}
|
|
624
624
|
let [newContainer] = this._getPossibleContainerForDrop(event);
|
|
625
|
+
if (!newContainer)
|
|
626
|
+
newContainer = this.rootDesignItem;
|
|
625
627
|
let pos = this.getNormalizedElementCoordinates(newContainer.element);
|
|
626
628
|
this._fillCalculationrects();
|
|
627
629
|
const position = this.getNormalizedEventCoordinates(event);
|
|
@@ -780,6 +782,8 @@ export class DesignerCanvas extends BaseCustomWebComponentLazyAppend {
|
|
|
780
782
|
continue;
|
|
781
783
|
if (e.getRootNode() !== this.shadowRoot)
|
|
782
784
|
continue;
|
|
785
|
+
if (e == this._outercanvas2)
|
|
786
|
+
break;
|
|
783
787
|
retVal.push(e);
|
|
784
788
|
if (e === this._canvas)
|
|
785
789
|
break;
|
|
@@ -791,6 +795,10 @@ export class DesignerCanvas extends BaseCustomWebComponentLazyAppend {
|
|
|
791
795
|
let currentElement = null;
|
|
792
796
|
for (let i = 0; i < elements.length; i++) {
|
|
793
797
|
currentElement = elements[i];
|
|
798
|
+
if (currentElement == this._outercanvas2) {
|
|
799
|
+
currentElement = null;
|
|
800
|
+
break;
|
|
801
|
+
}
|
|
794
802
|
if (currentElement == this.clickOverlay) {
|
|
795
803
|
currentElement = null;
|
|
796
804
|
continue;
|