Is your feature request related to a problem? Please describe.
I have a feature during my work: set a field's value to undefined
like a custom data picker, users can click the X button to clear the value so I need to set the data to undefined and show the error message. I know we can reset the field, but what if it has an initial value?
Describe the solution you'd like
Maybe add a parameter in the function resetField to let me set the reset value.
Describe alternatives you've considered
Additional context
BTW this works, but our team doesn't want to use type cast:
setData("dob", e!);
This a screenshot for this

Great thanks!
Is your feature request related to a problem? Please describe.
I have a feature during my work: set a field's value to undefined
like a custom data picker, users can click the
Xbutton to clear the value so I need to set the data to undefined and show the error message. I know we can reset the field, but what if it has an initial value?Describe the solution you'd like
Maybe add a parameter in the function
resetFieldto let me set the reset value.Describe alternatives you've considered
Additional context
BTW this works, but our team doesn't want to use type cast:
setData("dob", e!);This a screenshot for this

Great thanks!