svelte-formula
Advanced tools
Comparing version 0.8.4 to 0.8.5
@@ -8,3 +8,3 @@ # Changelog | ||
## [0.8.4] - 2021-02-23 | ||
## [0.8.5] - 2021-02-23 | ||
@@ -11,0 +11,0 @@ ### Fixed |
{ | ||
"name": "svelte-formula", | ||
"description": "Reactive Forms for Svelte", | ||
"version": "0.8.4", | ||
"version": "0.8.5", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "svelte", |
@@ -451,3 +451,3 @@ import { get, writable } from 'svelte/store'; | ||
var val = parseFloat(element.value); | ||
return !isNaN(val) ? val : ''; | ||
return !isNaN(val) ? val : null; | ||
}(); | ||
@@ -470,3 +470,3 @@ break; | ||
}); | ||
elValue = foundElement ? foundElement.value : ''; | ||
elValue = foundElement ? foundElement.value : null; | ||
break; | ||
@@ -485,3 +485,3 @@ } | ||
return v.id === element.id ? element.value : v.value; | ||
}) : element.value; | ||
}) : element.value || null; | ||
} | ||
@@ -535,4 +535,4 @@ } | ||
value = elValue.length === 0 ? value : elValue; | ||
} else if (!isReset && elValue !== null) { | ||
value = elValue; | ||
} else { | ||
value = elValue === null ? '' : elValue; | ||
} | ||
@@ -539,0 +539,0 @@ } |
@@ -455,3 +455,3 @@ (function (global, factory) { | ||
var val = parseFloat(element.value); | ||
return !isNaN(val) ? val : ''; | ||
return !isNaN(val) ? val : null; | ||
}(); | ||
@@ -474,3 +474,3 @@ break; | ||
}); | ||
elValue = foundElement ? foundElement.value : ''; | ||
elValue = foundElement ? foundElement.value : null; | ||
break; | ||
@@ -489,3 +489,3 @@ } | ||
return v.id === element.id ? element.value : v.value; | ||
}) : element.value; | ||
}) : element.value || null; | ||
} | ||
@@ -539,4 +539,4 @@ } | ||
value = elValue.length === 0 ? value : elValue; | ||
} else if (!isReset && elValue !== null) { | ||
value = elValue; | ||
} else { | ||
value = elValue === null ? '' : elValue; | ||
} | ||
@@ -543,0 +543,0 @@ } |
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
124531