mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX: Fixed lookup of next closest visible field for focus restoring (fixes #5618)
This commit is contained in:
parent
f3cf55074f
commit
341f49c630
@ -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…
Reference in New Issue
Block a user