@rxdi/forms 0.7.155 → 0.7.157
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/form.group.js +7 -3
- package/package.json +2 -2
package/dist/form.group.js
CHANGED
|
@@ -92,9 +92,13 @@ class FormGroup {
|
|
|
92
92
|
.querySelectorAll(selector).values()
|
|
93
93
|
].length;
|
|
94
94
|
let value = this.value;
|
|
95
|
-
if (hasMultipleBindings === 1
|
|
96
|
-
(this.type === '
|
|
97
|
-
|
|
95
|
+
if (hasMultipleBindings === 1) {
|
|
96
|
+
if (this.type === 'radio') {
|
|
97
|
+
value = String(this.checked);
|
|
98
|
+
}
|
|
99
|
+
if (this.type === 'checkbox') {
|
|
100
|
+
value = this.checked;
|
|
101
|
+
}
|
|
98
102
|
}
|
|
99
103
|
if (this.type === 'number') {
|
|
100
104
|
value = Number(value);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rxdi/forms",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.157",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"author": "Kristiyan Tachev",
|
|
6
6
|
"license": "MIT",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"build": "tsc || true"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@rxdi/lit-html": "^0.7.
|
|
15
|
+
"@rxdi/lit-html": "^0.7.156",
|
|
16
16
|
"@types/node": "^12.0.10",
|
|
17
17
|
"rxjs": "^6.5.3",
|
|
18
18
|
"typescript": "^4.3.5"
|