Skip to content

Commit 757ea2b

Browse files
ENGCOM-6569: Fix the wrong behavior of validation scroll on the iPhone X #26327
- Merge Pull Request #26327 from iGerchak/magento2:fix-validation-scroll-on-iPhoneX - Merged commits: 1. 9d29a98
2 parents 18c339e + 9d29a98 commit 757ea2b

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)