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

FranzSkuffka picture FranzSkuffka  ·  3Comments

Zhao-github picture Zhao-github  ·  3Comments

Kingwl picture Kingwl  ·  3Comments

zhguokai picture zhguokai  ·  3Comments

fscardua picture fscardua  ·  3Comments