Skip to content

Conversation

@Han5991
Copy link
Contributor

@Han5991 Han5991 commented May 9, 2025

Summary

This pull request introduces the resetField method to the Mantine form utilities. This method allows resetting individual fields to their initial values.

Changes

  • Added resetField method to form utilities.
  • Updated types, hooks, and relevant tests to integrate the new functionality.
  • Ensured consistent behavior in both controlled and uncontrolled modes.

Checklist

  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests to

@Han5991 Han5991 force-pushed the feature/form-resetFiled branch 2 times, most recently from 508e98c to f8d6875 Compare May 9, 2025 08:49
Introduce the `resetField` method to reset individual fields to their initial values. Updated types, hooks, and relevant tests to support this new functionality, ensuring consistent behavior in both controlled and uncontrolled modes.
@Han5991 Han5991 force-pushed the feature/form-resetFiled branch from f8d6875 to 2348372 Compare May 9, 2025 08:51
@rtivital rtivital changed the base branch from master to 8.1.0-contributions May 9, 2025 12:30
@rtivital rtivital merged commit 19f8343 into mantinedev:8.1.0-contributions May 9, 2025
1 check passed
@rtivital
Copy link
Member

rtivital commented May 9, 2025

Thanks!

@Han5991 Han5991 deleted the feature/form-resetFiled branch June 22, 2025 10:00
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