@esportsplus/ui 0.21.4 → 0.21.5
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.
|
@@ -37,7 +37,8 @@ const field = template.factory(function (attributes, content) {
|
|
|
37
37
|
${{
|
|
38
38
|
class: () => state.active && '--active',
|
|
39
39
|
onchange: (e) => {
|
|
40
|
-
|
|
40
|
+
let type = e.target.type;
|
|
41
|
+
if (type !== 'checkbox' && type !== 'radio') {
|
|
41
42
|
return;
|
|
42
43
|
}
|
|
43
44
|
state.active = e.target?.checked;
|
package/package.json
CHANGED
|
@@ -56,7 +56,9 @@ const field = template.factory(
|
|
|
56
56
|
${{
|
|
57
57
|
class: () => state.active && '--active',
|
|
58
58
|
onchange: (e) => {
|
|
59
|
-
|
|
59
|
+
let type = (e.target as HTMLInputElement).type;
|
|
60
|
+
|
|
61
|
+
if (type !== 'checkbox' && type !== 'radio') {
|
|
60
62
|
return;
|
|
61
63
|
}
|
|
62
64
|
|