mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merge pull request #5620 from webbuilders-group/field-visibility-refocus-fix
BUGFIX: Fixed lookup of next closest visible field for focus restoring (fixes #5618)
This commit is contained in:
commit
0dcffda0e8
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user