jquery-validation / jquery-validation

jQuery Validation Plugin library sources

Home Page:https://jqueryvalidation.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Jquery Validation V1.19.5 : Prev version Fix will be missing in Latest

LingeshK11 opened this issue · comments

Your environment

  • Version of jquery-validate: v1.19.5

if maxlength is empty,The maxlength parameter is converted to 0. then I won’t compare maxlength and input value..
Fix for the above mentioned issue will be provided in the below link but it will be missing in the Latest Version v1.19.5.
We have to add the fix manually for every upgrade ?

b928fbb

why is maxlength empty? if you don't want to validate, don't add the rule?

In our tool Maxlength property will be added via common component as of now we can't change the existing component change hance raised for a request..

b928fbb
Kndly clarify, Above mentioned changeset is a Workaround solution or else a Common change for overall jquery validation.
If it is overall change then i can't find the above mentioned solution in the latest v1.19.5,

For every New upgrade we have to manually add the maxlength validation changes ?

I think this would change the behaviour of the maxlength rule i.e. people may currently expect max:0 to block input. It's best if you change your code.