EasyUI Forum
October 16, 2025, 06:03:56 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Form validate inconsistency  (Read 7944 times)
chrwei
Full Member
***
Posts: 219


View Profile Email
« 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.
Logged
jarry
Administrator
Hero Member
*****
Posts: 2300


View Profile Email
« Reply #1 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.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!