@puckeditor/core 0.21.2 → 0.21.3-canary.88fa3eeb
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.
|
@@ -2707,6 +2707,10 @@ var DraggableComponent = ({
|
|
|
2707
2707
|
);
|
|
2708
2708
|
const onClick = useCallback7(
|
|
2709
2709
|
(e) => {
|
|
2710
|
+
const userIsDragging = !!zoneStore.getState().draggedItem;
|
|
2711
|
+
if (userIsDragging) {
|
|
2712
|
+
return;
|
|
2713
|
+
}
|
|
2710
2714
|
const el = e.target;
|
|
2711
2715
|
if (!el.closest("[data-puck-overlay-portal]")) {
|
|
2712
2716
|
e.stopPropagation();
|
package/dist/index.js
CHANGED
|
@@ -8287,6 +8287,10 @@ var DraggableComponent = ({
|
|
|
8287
8287
|
);
|
|
8288
8288
|
const onClick = (0, import_react51.useCallback)(
|
|
8289
8289
|
(e) => {
|
|
8290
|
+
const userIsDragging = !!zoneStore.getState().draggedItem;
|
|
8291
|
+
if (userIsDragging) {
|
|
8292
|
+
return;
|
|
8293
|
+
}
|
|
8290
8294
|
const el = e.target;
|
|
8291
8295
|
if (!el.closest("[data-puck-overlay-portal]")) {
|
|
8292
8296
|
e.stopPropagation();
|
package/dist/index.mjs
CHANGED
package/dist/no-external.js
CHANGED
|
@@ -8287,6 +8287,10 @@ var DraggableComponent = ({
|
|
|
8287
8287
|
);
|
|
8288
8288
|
const onClick = (0, import_react51.useCallback)(
|
|
8289
8289
|
(e) => {
|
|
8290
|
+
const userIsDragging = !!zoneStore.getState().draggedItem;
|
|
8291
|
+
if (userIsDragging) {
|
|
8292
|
+
return;
|
|
8293
|
+
}
|
|
8290
8294
|
const el = e.target;
|
|
8291
8295
|
if (!el.closest("[data-puck-overlay-portal]")) {
|
|
8292
8296
|
e.stopPropagation();
|
package/dist/no-external.mjs
CHANGED