@atomico/hooks
Advanced tools
Comparing version 3.12.3 to 3.12.4
{ | ||
"name": "@atomico/hooks", | ||
"description": "Series of utilities in hooks format to extend the operation of Atomico", | ||
"version": "3.12.3", | ||
"version": "3.12.4", | ||
"type": "module", | ||
@@ -6,0 +6,0 @@ "workspaces": [ |
@@ -38,7 +38,3 @@ import { useLayoutEffect, useState } from "atomico"; | ||
if (target) { | ||
if (target.type == "checkbox" || target.type == "radio") { | ||
return target.checked; | ||
} else { | ||
return target.value; | ||
} | ||
return new FormData(target).get(name); | ||
} | ||
@@ -52,3 +48,2 @@ return defaultValue; | ||
useFormListener("input", check); | ||
useFormListener("change", check); | ||
@@ -55,0 +50,0 @@ useFormListener("reset", check); |
54280
1587