mirror of
https://github.com/jquery-validation/jquery-validation.git
synced 2025-12-14 20:35:47 +01:00
Core: Stop trimming value inside required method
There was never much of a point anyway, and it causes problems. Fixes #1498
This commit is contained in:
@@ -1143,7 +1143,7 @@ $.extend( $.validator, {
|
||||
if ( this.checkable( element ) ) {
|
||||
return this.getLength( value, element ) > 0;
|
||||
}
|
||||
return $.trim( value ).length > 0;
|
||||
return value.length > 0;
|
||||
},
|
||||
|
||||
// http://jqueryvalidation.org/email-method/
|
||||
|
||||
Reference in New Issue
Block a user