From 6458fd9c4389618288a27e835b575d315f662c8d Mon Sep 17 00:00:00 2001 From: mark van tilburg Date: Sun, 10 Apr 2016 21:45:56 +0200 Subject: [PATCH] Scrollto does not work when the value is filtered If configured like this: $.validity.setup({ outputMode:"tooltip",useInfer:false,scrollTo:true }); An error is rendered with jquery 1.12 since an id is missing. --- src/jquery.validity.core.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/jquery.validity.core.js b/src/jquery.validity.core.js index 1fee51f..b24d5dd 100644 --- a/src/jquery.validity.core.js +++ b/src/jquery.validity.core.js @@ -775,9 +775,7 @@ $.fn.extend({ // raise the error - aggregate will use last repeated value raiseAggregateError( - $reduction.filter( - "[value=\'" + repeatedVal[i] + "\']" - ), + $reduction, msg ); }