Skip to content

Commit 9fe21d3

Browse files
author
Alexey Yakimovich
committed
MAGETWO-96434: [2.3.x] Autoscroll is missed on JS error on Storefront PDP [mobile]
- Fixed an issue with scroll to element after form validation on Safari iOS;
1 parent 069d5cd commit 9fe21d3

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
@@ -1929,6 +1929,9 @@
19291929
}
19301930

19311931
if (firstActive.length) {
1932+
$('html, body').animate({
1933+
scrollTop: firstActive.offset().top
1934+
});
19321935
firstActive.focus();
19331936
}
19341937
}

0 commit comments

Comments
 (0)