BUGFIX: Fixed lookup of next closest visible field for focus restoring (fixes #5618)

This commit is contained in:
UndefinedOffset 2016-05-31 11:09:40 -03:00
parent f3cf55074f
commit 341f49c630

View File

@ -318,7 +318,7 @@
//Fall back to nearest visible element if hidden (for select type fields)
if(!$(elementID).is(':visible')){
elementID = '#' + $(elementID).closest('.field').attr('id');
elementID = '#' + $(elementID).closest('.field:visible').attr('id');
scrollY = $(elementID).position().top;
}