Skip to content
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

Set a field's value to undefined #300

Open
LouisLuBrain opened this issue Aug 5, 2024 · 0 comments
Open

Set a field's value to undefined #300

LouisLuBrain opened this issue Aug 5, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@LouisLuBrain
Copy link

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
Screen Shot 2024-08-05 at 12 39 29 AM

Great thanks!

@LouisLuBrain LouisLuBrain added the enhancement New feature or request label Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant