c2s-ngx-dnd
Advanced tools
Comparing version 1.2.5 to 1.2.6
@@ -65,6 +65,6 @@ import { Directive, Input, Output, ElementRef, HostListener, EventEmitter } from '@angular/core'; | ||
try { | ||
event.dataTransfer.setData(mimeType, JSON.stringify(this.dndObject)); | ||
event.dataTransfer.setData(mimeType, this.dndObject); | ||
} | ||
catch (e) { | ||
var data = JSON.stringify({ item: this.dndObject, type: this.dragState.itemType }); | ||
var data = { item: this.dndObject, type: this.dragState.itemType }; | ||
try { | ||
@@ -71,0 +71,0 @@ event.dataTransfer.setData(EDGE_MIME_TYPE, data); |
@@ -91,3 +91,3 @@ import { Directive, Input, Output, ElementRef, HostListener, EventEmitter } from '@angular/core'; | ||
try { | ||
data = JSON.parse(event.dataTransfer.getData(mimeType)); | ||
data = event.dataTransfer.getData(mimeType); | ||
} | ||
@@ -94,0 +94,0 @@ catch (e) { |
@@ -54,3 +54,3 @@ { | ||
}, | ||
"version": "1.2.5" | ||
"version": "1.2.6" | ||
} |
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
62782