Skip to content

Commit 8ad5f92

Browse files
authored
Merge pull request #2744 from adumesny/master
remove dataTransfer mention as not supported
2 parents 419b08d + ee2d87f commit 8ad5f92

File tree

4 files changed

+1
-141
lines changed

4 files changed

+1
-141
lines changed

demo/drag-and-drop-dataTransfer-angular.ts

-62
This file was deleted.

demo/drag-and-drop-dataTransfer.html

-75
This file was deleted.

doc/CHANGES.md

+1
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ Change log
118118
* fix: [#2741](https://github.com/gridstack/gridstack.js/pull/2741) resizeToContent JS error with nested grid
119119
* fix: [#2740](https://github.com/gridstack/gridstack.js/bug/2740) nested grid drag fix
120120
* fix: [#2730](https://github.com/gridstack/gridstack.js/bug/2730) resizing left from right most item works
121+
* fix: [#2327](https://github.com/gridstack/gridstack.js/bug/2327) remove dataTransfer mention as not supported
121122

122123
## 10.3.0 (2024-06-26)
123124
* fix: [#2720](https://github.com/gridstack/gridstack.js/pull/2720) load() now creates widgets in order (used to be reverse due to old collision code)

src/utils.ts

-4
Original file line numberDiff line numberDiff line change
@@ -530,10 +530,6 @@ export class Utils {
530530
cancelable: true,
531531
target: info.target ? info.target : e.target
532532
};
533-
// don't check for `instanceof DragEvent` as Safari use MouseEvent #1540
534-
if ((e as DragEvent).dataTransfer) {
535-
evt['dataTransfer'] = (e as DragEvent).dataTransfer; // workaround 'readonly' field.
536-
}
537533
['altKey','ctrlKey','metaKey','shiftKey'].forEach(p => evt[p] = e[p]); // keys
538534
['pageX','pageY','clientX','clientY','screenX','screenY'].forEach(p => evt[p] = e[p]); // point info
539535
return {...evt, ...obj} as unknown as T;

0 commit comments

Comments
 (0)