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

How to disable submission or revert to initValue the CardSettingsText() ? #178

Open
visign3d opened this issue Apr 7, 2022 · 3 comments

Comments

@visign3d
Copy link

visign3d commented Apr 7, 2022

How to disable submission or revert to initValue the cardsettingstext? When input value is not valid , submission still works. I have a situation when input text should not empty, but after validation the submission still works and as result the inputfield stays empty.

@codegrue
Copy link
Owner

codegrue commented Apr 7, 2022

Are you checking for empty string also in your validation?

@visign3d
Copy link
Author

visign3d commented Apr 8, 2022

yes,
image

@visign3d
Copy link
Author

visign3d commented Apr 8, 2022

i think, i can do this with extra textfieldcontroller , but would be nice if there would be some inbuilt 'on invalid submit' mechanics. For example the textfield returns to initial value or the submit button is blocked. I added an extra focus request to hold the textfield in edit mode.

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

No branches or pull requests

2 participants