Skip to content

Commit 2e0aa0f

Browse files
authored
ENGCOM-4820: [Backport] Previous scrolling to invalid form element is not being canceled on h… #22358
2 parents 3835ad5 + 41ebeeb commit 2e0aa0f

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
@@ -1948,7 +1948,7 @@
19481948
}
19491949

19501950
if (firstActive.length) {
1951-
$('html, body').animate({
1951+
$('html, body').stop().animate({
19521952
scrollTop: firstActive.offset().top
19531953
});
19541954
firstActive.focus();

0 commit comments

Comments
 (0)