Skip to content

Commit

Permalink
BUGFIX: Fixed lookup of next closest visible field for focus restoring (
Browse files Browse the repository at this point in the history
fixes #5618)
  • Loading branch information
UndefinedOffset committed May 31, 2016
1 parent f3cf550 commit 341f49c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/javascript/LeftAndMain.EditForm.js
Expand Up @@ -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;
}

Expand Down

0 comments on commit 341f49c

Please sign in to comment.