pure-upload
Advanced tools
Comparing version 1.0.15 to 1.0.16
@@ -270,4 +270,4 @@ function addEventHandler(el, event, handler) { | ||
this.formForNoFileApi.style.overflow = 'hidden'; | ||
this.formForNoFileApi.style.width = this.targetElement.offsetWidth.toString(); | ||
this.formForNoFileApi.style.height = this.targetElement.offsetHeight.toString(); | ||
this.formForNoFileApi.style.width = this.targetElement.offsetWidth.toString() + 'px'; | ||
this.formForNoFileApi.style.height = this.targetElement.offsetHeight.toString() + 'px'; | ||
if (this.targetElement.clientHeight === 0 || this.targetElement.clientWidth === 0) { | ||
@@ -274,0 +274,0 @@ console.warn('upload element height and width has to be set to be able catch upload'); |
@@ -387,4 +387,4 @@ export function addEventHandler(el: HTMLInputElement | Element, event: string, handler: (ev: UIEvent) => void) { | ||
this.formForNoFileApi.style.overflow = 'hidden'; | ||
this.formForNoFileApi.style.width = this.targetElement.offsetWidth.toString(); | ||
this.formForNoFileApi.style.height = this.targetElement.offsetHeight.toString(); | ||
this.formForNoFileApi.style.width = this.targetElement.offsetWidth.toString() + 'px'; | ||
this.formForNoFileApi.style.height = this.targetElement.offsetHeight.toString() + 'px'; | ||
@@ -391,0 +391,0 @@ if (this.targetElement.clientHeight === 0 || this.targetElement.clientWidth === 0) { |
{ | ||
"name": "pure-upload", | ||
"version": "1.0.15", | ||
"version": "1.0.16", | ||
"description": "The pure upload library without dependencies", | ||
@@ -5,0 +5,0 @@ "author": { |
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
71505