Skip to content

Conversation

@Han5991
Copy link
Contributor

@Han5991 Han5991 commented Jul 6, 2025

Fixes #8050

This pull request introduces updates to the resetField function and provides an example to demonstrate its usage in uncontrolled form scenarios:

  • Added a new story, UncontrolledResetField, to illustrate the resetField functionality with clear interactions like resetting and managing field values.
  • Enhanced the resetField implementation to include support for an optional subscribers parameter, improving integration with value updates and ensuring compatibility across controlled and uncontrolled modes.

Han5991 added 2 commits July 5, 2025 12:34
Enhanced the resetField function to accept an optional subscribers parameter for improved handling of value updates. This change ensures better integration with subscriber management and aligns the logic with controlled/uncontrolled modes.
Introduced a new story, `UncontrolledResetField`, demonstrating the resetField functionality in uncontrolled mode. This example highlights key interactions, including resetting and setting field values.
@rtivital rtivital merged commit 744a449 into mantinedev:master Jul 7, 2025
1 check passed
@rtivital
Copy link
Member

rtivital commented Jul 7, 2025

Thanks!

@Han5991 Han5991 deleted the fix/reset-field-rerender-(#8017) branch July 7, 2025 06:17
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