Skip to content

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

Open

Description

@visign3d

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.

Activity

  1. codegrue commented on Apr 7, 2022

    @codegrue
    Owner

    Are you checking for empty string also in your validation?

  2. visign3d commented on Apr 8, 2022

    @visign3d
    Author

    yes,
    image

  3. visign3d commented on Apr 8, 2022

    @visign3d
    Author

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions