-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TextField: Form.Reset clears masked textfield #3935
Conversation
The test seems to fail on the CI server? I'll re-run it. |
Looks like it failed again. :( |
I'll look at it today. I have a lot of experience with that kind of thing |
Ok, I looked at it. It appears that adding the So I advise you to create a separate test component for testing reset with a masked text field and revert the change to the existing ResetTest test component. |
This reverts commit e35d250.
Codecov Report
@@ Coverage Diff @@
## dev #3935 +/- ##
==========================================
+ Coverage 91.04% 91.12% +0.07%
==========================================
Files 350 351 +1
Lines 11462 11605 +143
==========================================
+ Hits 10436 10575 +139
- Misses 1026 1030 +4
Continue to review full report at Codecov.
|
Ok, I think we're all good now. Are you able to review this change @henon? |
Nice and clean. Thank you! |
* Fix bug where Form.Reset wouldn't clear masked textfield children. * Add tests for masked TextField form reset. * Revert "Add tests for masked TextField form reset." This reverts commit e35d250. * Add Form reset Mask test.
* Fix bug where Form.Reset wouldn't clear masked textfield children. * Add tests for masked TextField form reset. * Revert "Add tests for masked TextField form reset." This reverts commit e35d250. * Add Form reset Mask test.
* Fix bug where Form.Reset wouldn't clear masked textfield children. * Add tests for masked TextField form reset. * Revert "Add tests for masked TextField form reset." This reverts commit e35d250. * Add Form reset Mask test.
* Fix bug where Form.Reset wouldn't clear masked textfield children. * Add tests for masked TextField form reset. * Revert "Add tests for masked TextField form reset." This reverts commit e35d250. * Add Form reset Mask test.
* Fix bug where Form.Reset wouldn't clear masked textfield children. * Add tests for masked TextField form reset. * Revert "Add tests for masked TextField form reset." This reverts commit e35d250. * Add Form reset Mask test.
* Fix bug where Form.Reset wouldn't clear masked textfield children. * Add tests for masked TextField form reset. * Revert "Add tests for masked TextField form reset." This reverts commit e35d250. * Add Form reset Mask test.
* Fix bug where Form.Reset wouldn't clear masked textfield children. * Add tests for masked TextField form reset. * Revert "Add tests for masked TextField form reset." This reverts commit e35d250. * Add Form reset Mask test.
Description
Calling
Reset
on a form will not reset a maskedMudTextField
, as shown in this TryMudBlazor. Type a phone number in the form, click reset, and the number will remain. If you fill any of the other fields they will reset as expected.How Has This Been Tested?
I have added a test that tests resetting a Masked
MudTextField
within aMudForm
. It also works within the unit tests viewer.Types of changes
Checklist:
dev
).