svelte-formula
Advanced tools
Comparing version 0.7.1 to 0.7.2
@@ -8,2 +8,8 @@ # Changelog | ||
## [0.7.2] 2021-02-19 | ||
### Fixed | ||
- Fixed single checkbox not setting correctly | ||
## [0.7.1] 2021-02-19 | ||
@@ -10,0 +16,0 @@ |
{ | ||
"name": "svelte-formula", | ||
"description": "Reactive Forms for Svelte", | ||
"version": "0.7.1", | ||
"version": "0.7.2", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "svelte", |
@@ -297,2 +297,6 @@ import { get, writable } from 'svelte/store'; | ||
} | ||
} else if (element.type === 'checkbox') { | ||
elementGroup.forEach(function (el) { | ||
el.checked = value === el.value; | ||
}); | ||
} else if (element.type === 'radio') { | ||
@@ -895,4 +899,3 @@ elementGroup.forEach(function (el) { | ||
var submitHandler = undefined; | ||
var unsub; // eslint-disable-line | ||
var unsub; | ||
var innerReset; | ||
@@ -976,3 +979,3 @@ var groupedMap = []; | ||
function cleanupSubscriptions() { | ||
unsub(); | ||
unsub && unsub(); | ||
@@ -979,0 +982,0 @@ __spread(keyupHandlers, changeHandlers).forEach(function (_a) { |
@@ -301,2 +301,6 @@ (function (global, factory) { | ||
} | ||
} else if (element.type === 'checkbox') { | ||
elementGroup.forEach(function (el) { | ||
el.checked = value === el.value; | ||
}); | ||
} else if (element.type === 'radio') { | ||
@@ -899,4 +903,3 @@ elementGroup.forEach(function (el) { | ||
var submitHandler = undefined; | ||
var unsub; // eslint-disable-line | ||
var unsub; | ||
var innerReset; | ||
@@ -980,3 +983,3 @@ var groupedMap = []; | ||
function cleanupSubscriptions() { | ||
unsub(); | ||
unsub && unsub(); | ||
@@ -983,0 +986,0 @@ __spread(keyupHandlers, changeHandlers).forEach(function (_a) { |
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
122496
2292