@firecms/formex
Advanced tools
Comparing version 3.0.0-canary.127 to 3.0.0-canary.128
@@ -220,3 +220,10 @@ import * as React from "react"; | ||
const target = event.target; | ||
const value = target.type === "checkbox" ? target.checked : target.value; | ||
let value; | ||
if (target.type === "checkbox") { | ||
value = target.checked; | ||
} else if (target.type === "number") { | ||
value = target.valueAsNumber; | ||
} else { | ||
value = target.value; | ||
} | ||
const name = target.name; | ||
@@ -223,0 +230,0 @@ setFieldValue(name, value, validateOnChange); |
@@ -238,3 +238,10 @@ (function(global, factory) { | ||
const target = event.target; | ||
const value = target.type === "checkbox" ? target.checked : target.value; | ||
let value; | ||
if (target.type === "checkbox") { | ||
value = target.checked; | ||
} else if (target.type === "number") { | ||
value = target.valueAsNumber; | ||
} else { | ||
value = target.value; | ||
} | ||
const name = target.name; | ||
@@ -241,0 +248,0 @@ setFieldValue(name, value, validateOnChange); |
{ | ||
"name": "@firecms/formex", | ||
"type": "module", | ||
"version": "3.0.0-canary.127", | ||
"version": "3.0.0-canary.128", | ||
"publishConfig": { | ||
@@ -75,3 +75,3 @@ "access": "public" | ||
}, | ||
"gitHead": "0c46cee41d666c60817c9f4f0447f78fcfa07ddf" | ||
"gitHead": "bc89d0f2a854db605146acc129aeee89d8e0d0a3" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
99024
1271