From 742028f524da6a77e1bd7edc7f5fd67d2a561848 Mon Sep 17 00:00:00 2001 From: Jenny Belanger Date: Sat, 3 Feb 2024 12:01:58 -0500 Subject: [PATCH] Pass event to setValue --- src/js/Input.js | 2 +- yarn.lock | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/js/Input.js b/src/js/Input.js index 326cfc7..aac3ab7 100644 --- a/src/js/Input.js +++ b/src/js/Input.js @@ -35,7 +35,7 @@ export default function Input({ const onChange = (e) => { const newValue = e.target.value; if (setValue) { - setValue(newValue); + setValue(newValue, e); } else { setValues(e, name, newValue, afterChange); } diff --git a/yarn.lock b/yarn.lock index 285ec69..fcfee2f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2374,9 +2374,9 @@ caniuse-api@^3.0.0: lodash.uniq "^4.5.0" caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001109, caniuse-lite@^1.0.30001565: - version "1.0.30001576" - resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001576.tgz" - integrity sha512-ff5BdakGe2P3SQsMsiqmt1Lc8221NR1VzHj5jXN5vBny9A6fpze94HiVV/n7XRosOlsShJcvMv5mdnpjOGCEgg== + version "1.0.30001583" + resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001583.tgz" + integrity sha512-acWTYaha8xfhA/Du/z4sNZjHUWjkiuoAi2LM+T/aL+kemKQgPT1xBb/YKjlQ0Qo8gvbHsGNplrEJ+9G3gL7i4Q== chalk@^1.0.0, chalk@^1.1.3: version "1.1.3"