@superblocksteam/library 2.0.41-next.13 → 2.0.41-next.14
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/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -2221,6 +2221,7 @@ function useDraggableWidget(props) {
|
|
|
2221
2221
|
disableDrag: disableDrag ?? false
|
|
2222
2222
|
});
|
|
2223
2223
|
const onPointerDown = useCallback((e) => {
|
|
2224
|
+
if (e.target instanceof HTMLElement && e.target.dataset.ignoreDnd) return;
|
|
2224
2225
|
if (specificWidgetDragDisabled) e.stopPropagation();
|
|
2225
2226
|
else listeners?.onPointerDown(e);
|
|
2226
2227
|
}, [specificWidgetDragDisabled, listeners]);
|