@marianmeres/stuic 1.70.0 → 1.71.0
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.
|
@@ -88,6 +88,9 @@ export const droppable = (node, options) => {
|
|
|
88
88
|
};
|
|
89
89
|
const onDragover = (e) => {
|
|
90
90
|
// _log('onDragover', e.dataTransfer); // too much spam
|
|
91
|
+
// this is important, otherwise onDrop will no be fired
|
|
92
|
+
// (so we're preventing default not to prevent future onDrop)
|
|
93
|
+
e.preventDefault();
|
|
91
94
|
options?.isDraggedOver?.set(options.id);
|
|
92
95
|
if (_isFn(options.onDragover)) {
|
|
93
96
|
return options.onDragover(e);
|