Element: [Feature Request] Disable submit button in form till fields are invalid

Created on 30 Sep 2017  ·  2Comments  ·  Source: ElemeFE/element

Existing Component

Yes

Component Name

Form

Description

I need the submit button of form to be disabled till all the form fields are valid. As soon as all user inputs are valid, it should be enabled.

All 2 comments

The underlying issue is that aync-validator (used in element form) is... asynchronous and the need is to have an synchronous validation method that we can easily use to disable/enable the submit button.

Is there a way to make this behaviour without having to rewrite all the validators handled by async validator ?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

fscardua picture fscardua  ·  3Comments

smallpath picture smallpath  ·  3Comments

yuchonghua picture yuchonghua  ·  3Comments

sudo-suhas picture sudo-suhas  ·  3Comments

EdenSpark picture EdenSpark  ·  3Comments