front-react-dnd-html5-backend
Advanced tools
Comparing version 8.0.3-1 to 8.0.3-2
@@ -96,3 +96,4 @@ import EnterLeaveCounter from './EnterLeaveCounter'; | ||
if (text) { | ||
const transferText = (typeof text === 'function') ? text() : text.toString(); | ||
const isTextFunction = typeof text === 'function'; | ||
const transferText = isTextFunction ? text() : text.toString(); | ||
dataTransfer.setData('Text', transferText); | ||
@@ -261,3 +262,8 @@ } | ||
}); | ||
this.actions.drop({ dropEffect: this.getCurrentDropEffect() }); | ||
this.actions.drop({ | ||
dropEffect: this.getCurrentDropEffect(), | ||
altKey: Boolean(e.altKey), | ||
shiftKey: Boolean(e.shiftKey), | ||
metaKey: Boolean(e.metaKey), | ||
}); | ||
if (this.isDraggingNativeItem()) { | ||
@@ -264,0 +270,0 @@ this.endDragNativeItem(); |
{ | ||
"name": "front-react-dnd-html5-backend", | ||
"version": "8.0.3-1", | ||
"version": "8.0.3-2", | ||
"description": "HTML5 backend for React DnD", | ||
@@ -5,0 +5,0 @@ "type": "module", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
963
0
64547