Skip to content

fix: tanstack fields integration#992

Merged
tpoisseau merged 1 commit intomainfrom
fix-form-inconciestencies
Mar 10, 2026
Merged

fix: tanstack fields integration#992
tpoisseau merged 1 commit intomainfrom
fix-form-inconciestencies

Conversation

@tpoisseau
Copy link
Contributor

  • Checkbox bind checked instead defaultChecked to fix form reset
  • ColorPicker use handleChange instead setValue and bind onBlur
  • NumericInput bind onBlur
  • Switch also bind value like Checkbox

NB about onBlur: tanstack field.handleBlur updates metadata of the field. It helps to compute if a field had been touched, So it is needed to ensure form state is coherent.

* `Checkbox` bind `checked` instead `defaultChecked` to fix form reset
* `ColorPicker` use `handleChange` instead `setValue` and bind `onBlur`
* `NumericInput` bind `onBlur`
* `Switch` also bind `value` like `Checkbox`
@tpoisseau tpoisseau marked this pull request as ready for review March 10, 2026 13:18
@tpoisseau tpoisseau merged commit 8efb03d into main Mar 10, 2026
14 checks passed
@tpoisseau tpoisseau deleted the fix-form-inconciestencies branch March 10, 2026 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants