card_settings icon indicating copy to clipboard operation
card_settings copied to clipboard

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

Open visign3d opened this issue 2 years ago • 3 comments

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.

visign3d avatar Apr 07 '22 20:04 visign3d

Are you checking for empty string also in your validation?

codegrue avatar Apr 07 '22 22:04 codegrue

yes, image

visign3d avatar Apr 08 '22 10:04 visign3d

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.

visign3d avatar Apr 08 '22 10:04 visign3d