How to re-trigger validations manually in ReduxForm?

前端 未结 3 1250
暗喜
暗喜 2021-01-07 23:23

I like to re-trigger validations after the form has mounted. Let\'s assume I like to run the validations each time I click a button named \'validate inputs\'.

How to

3条回答
  •  没有蜡笔的小新
    2021-01-07 23:55

    According to 28/11/2018:

    https://redux-form.com/6.2.1/docs/api/actioncreators.md/

    There are actions that you can dispatch for making changes to your form and triggering the validation method.

    If you trigger change/touch actions it should execute the validate function.

提交回复
热议问题