Skip to content

Commit ddecf6b

Browse files
authored
ENGCOM-6569: Fix the wrong behavior of validation scroll on the iPhone X #26327
2 parents 0850e5e + 757ea2b commit ddecf6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/web/mage/validation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1970,7 +1970,7 @@ define([
19701970
}
19711971

19721972
if (firstActive.length) {
1973-
$('body').stop().animate({
1973+
$('html, body').stop().animate({
19741974
scrollTop: firstActive.offset().top - windowHeight / 2
19751975
});
19761976
firstActive.focus();

0 commit comments

Comments
 (0)