Skip to content

Commit fd5366b

Browse files
committed
MAGETWO-94200: Autoscroll is missed on JS error on Storefront PDP [mobile]
1 parent 523a83e commit fd5366b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/web/mage/validation.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1944,6 +1944,9 @@
19441944
}
19451945

19461946
if (firstActive.length) {
1947+
$('html, body').animate({
1948+
scrollTop: firstActive.offset().top
1949+
});
19471950
firstActive.focus();
19481951
}
19491952
}

0 commit comments

Comments
 (0)