Skip to content

Commit b8c93f5

Browse files
committed
Merge pull request posabsolute#822 from blacktail/master
support jQuery object for options.overflownDiv
2 parents 6115008 + 7409a97 commit b8c93f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/jquery.validationEngine.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@
397397
var scrollContainerPos = -parseInt(overflowDIV.offset().top);
398398

399399
destination += scrollContainerScroll + scrollContainerPos - 5;
400-
var scrollContainer = $(options.overflownDIV + ":not(:animated)");
400+
var scrollContainer = $(options.overflownDIV).filter(":not(:animated)");
401401

402402
scrollContainer.animate({ scrollTop: destination }, 1100, function(){
403403
if(options.focusFirstField) first_err.focus();

0 commit comments

Comments
 (0)