diff --git a/.changeset/nervous-plums-drop.md b/.changeset/nervous-plums-drop.md new file mode 100644 index 00000000000..f95b283f797 --- /dev/null +++ b/.changeset/nervous-plums-drop.md @@ -0,0 +1,5 @@ +--- +'@talend/design-system': patch +--- + +fix: binding in forms diff --git a/packages/design-system/src/components/Form/Affix/variations/AffixSelect.tsx b/packages/design-system/src/components/Form/Affix/variations/AffixSelect.tsx index 6f1115d2a0e..c33ad507758 100644 --- a/packages/design-system/src/components/Form/Affix/variations/AffixSelect.tsx +++ b/packages/design-system/src/components/Form/Affix/variations/AffixSelect.tsx @@ -15,7 +15,7 @@ const AffixSelect = forwardRef((props: AffixSelectPropsType, ref: Ref, + selectProps: Omit, ) { return ( @@ -25,7 +25,7 @@ const AffixSelect = forwardRef((props: AffixSelectPropsType, ref: Ref - + ); } diff --git a/packages/design-system/src/components/Form/Field/Datalist/Datalist.tsx b/packages/design-system/src/components/Form/Field/Datalist/Datalist.tsx index 1bcaae456b5..4a03dec6ce4 100644 --- a/packages/design-system/src/components/Form/Field/Datalist/Datalist.tsx +++ b/packages/design-system/src/components/Form/Field/Datalist/Datalist.tsx @@ -55,6 +55,9 @@ const Datalist = forwardRef( - + ); }, diff --git a/packages/design-system/src/components/Form/Field/Input/Input.tsx b/packages/design-system/src/components/Form/Field/Input/Input.tsx index 8b6e420fba5..9bb1ce5e756 100644 --- a/packages/design-system/src/components/Form/Field/Input/Input.tsx +++ b/packages/design-system/src/components/Form/Field/Input/Input.tsx @@ -43,11 +43,11 @@ const Field = forwardRef((props: InputFieldProps, ref: Ref) => ); diff --git a/packages/design-system/src/components/Form/Field/Select/Select.tsx b/packages/design-system/src/components/Form/Field/Select/Select.tsx index da881226bf5..22d0101e7e4 100644 --- a/packages/design-system/src/components/Form/Field/Select/Select.tsx +++ b/packages/design-system/src/components/Form/Field/Select/Select.tsx @@ -97,8 +97,8 @@ const Select = forwardRef((props: SelectProps, ref: Ref diff --git a/packages/design-system/src/components/Form/Field/Textarea/Textarea.tsx b/packages/design-system/src/components/Form/Field/Textarea/Textarea.tsx index ebf486ccd30..d7833f54a7d 100644 --- a/packages/design-system/src/components/Form/Field/Textarea/Textarea.tsx +++ b/packages/design-system/src/components/Form/Field/Textarea/Textarea.tsx @@ -44,6 +44,7 @@ const Textarea = forwardRef((props: InputTextareaProps, ref: Ref diff --git a/packages/design-system/src/components/Form/__snapshots__/Form.test.tsx.snap b/packages/design-system/src/components/Form/__snapshots__/Form.test.tsx.snap index 309bb9c8d7e..1887952bb60 100644 --- a/packages/design-system/src/components/Form/__snapshots__/Form.test.tsx.snap +++ b/packages/design-system/src/components/Form/__snapshots__/Form.test.tsx.snap @@ -115,6 +115,7 @@ exports[`Form should render a11y html 1`] = `