EasyUI Forum

General Category => EasyUI for React => Topic started by: chrwei on October 30, 2019, 01:35:04 PM



Title: Form validate inconsistency
Post by: chrwei on October 30, 2019, 01:35:04 PM
firstly, the docs don't mention that the form validate() method has a callback with the error list as a parameter, but the examples do show this.

next, this callback errors object only has the rules that are not passed, where the onValidate event's error object has all rules, passed or not, and the rules that passed are each an empty array.

shouldn't these be the same?  it would be convenient if the onValidate event matched the validate() method.


Title: Re: Form validate inconsistency
Post by: jarry on October 31, 2019, 02:02:26 AM
This issue has been fixed. The errors returned from 'validate' method and 'onValidate' event are same now. Please update to the newest version.