Skip to content

Conversation

@Matthias-dmt
Copy link

@Matthias-dmt Matthias-dmt commented Jan 9, 2026

Fixes #8364 & #7945

Summary

  • Prevent BaseEditableHolder from reapplying form initialValue after a field is cleared.
  • Add regression test for InputNumber used inside FormField with initialValue.

Details

  • In BaseEditableHolder, the form default value is now applied only when the component is uninitialized (d_value === undefined).
  • This keeps null as a valid "cleared" state for form fields.

Test

  • pnpm exec vitest run src/inputnumber/InputNumber.spec.js

@Mettbrot
Copy link

also fixes duplicate #7945

@Mettbrot
Copy link

There is also an older bug #7633 with a fix here: #8036

How does this compare?

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.

InputNumber cannot be cleared inside Form when initialValues are set

2 participants