From 2d79523c32a5c25645f14a28ab2f2a654b41b50e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabien=20H=C3=A9bert?= Date: Tue, 10 Sep 2024 16:18:05 +0200 Subject: [PATCH 1/2] fix(TextInputFieldV2): onChangeValue call --- .changeset/curvy-bugs-melt.md | 5 +++++ packages/form/src/components/TextInputFieldV2/index.tsx | 2 ++ 2 files changed, 7 insertions(+) create mode 100644 .changeset/curvy-bugs-melt.md diff --git a/.changeset/curvy-bugs-melt.md b/.changeset/curvy-bugs-melt.md new file mode 100644 index 0000000000..ef522ec7c8 --- /dev/null +++ b/.changeset/curvy-bugs-melt.md @@ -0,0 +1,5 @@ +--- +"@ultraviolet/form": patch +--- + +`TextInputValue`: the prop/callback `onChangeValue` is now called diff --git a/packages/form/src/components/TextInputFieldV2/index.tsx b/packages/form/src/components/TextInputFieldV2/index.tsx index 7afd497c20..39b36b2736 100644 --- a/packages/form/src/components/TextInputFieldV2/index.tsx +++ b/packages/form/src/components/TextInputFieldV2/index.tsx @@ -26,6 +26,7 @@ export const TextInputField = < className, tabIndex, onChange, + onChangeValue, placeholder, disabled = false, readOnly = false, @@ -114,6 +115,7 @@ export const TextInputField = < onChange={event => { field.onChange(event) onChange?.(event) + onChangeValue?.(event.target.value) }} onFocus={event => { onFocus?.(event) From 4f7cf21bdac5ec5953ed058fce1ecb46df1d1d3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabien=20H=C3=A9bert?= Date: Tue, 10 Sep 2024 16:22:06 +0200 Subject: [PATCH 2/2] Update .changeset/curvy-bugs-melt.md Co-authored-by: Matthias Prost --- .changeset/curvy-bugs-melt.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changeset/curvy-bugs-melt.md b/.changeset/curvy-bugs-melt.md index ef522ec7c8..1d26f41a38 100644 --- a/.changeset/curvy-bugs-melt.md +++ b/.changeset/curvy-bugs-melt.md @@ -2,4 +2,4 @@ "@ultraviolet/form": patch --- -`TextInputValue`: the prop/callback `onChangeValue` is now called +``: the prop/callback `onChangeValue` is now called