Skip to content

Commit

Permalink
Pass event to setValue
Browse files Browse the repository at this point in the history
  • Loading branch information
jlbelanger committed Feb 3, 2024
1 parent a5e8c81 commit 742028f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/js/Input.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 742028f

Please sign in to comment.