MudFormComponent: Make ErrorText property two-way bindable#12119
MudFormComponent: Make ErrorText property two-way bindable#12119ScarletKuro merged 5 commits intoMudBlazor:devfrom
Conversation
|
Run |
|
I added a testcomponent similar to the trymud from the original issue and added a new unittest to check the intended behavior. |
|
Yeah, looks great. |
|
Thanks, one step further to make validation better. Technically, the same should be done for |
Checklist:
Fixes #12106
This PR changes the property
ErrorTextin the componentMudFormComponent. The EventCallbackErrorTextChangedis added and the property is now usingParameterStateas described in the contribution guidelines. Since the ErrorText property is used in alot of UnitTests i had to adjust all of the usages in the tests to use.GetState().The
ErrorTextproperty is also used directly insideMudPicker,MudFileUploadandMudDateRangePickerso those components had to be adjusted in the usage of the property.The changes in the implementation of the property was done by @ScarletKuro , thanks for helping me with this issue.
This is my first contribution to this repository so i would appreciate a thoroughly check of the changes so i dont break something by accident.