Skip to content

Commit 3e0836e

Browse files
author
Yuriy
committed
Previous scrolling to invalid form element is not being canceled on hitting submit multiple times #21715
1 parent fd2771b commit 3e0836e

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
@@ -1958,7 +1958,7 @@
19581958
}
19591959

19601960
if (firstActive.length) {
1961-
$('html, body').animate({
1961+
$('html, body').stop().animate({
19621962
scrollTop: firstActive.offset().top
19631963
});
19641964
firstActive.focus();

0 commit comments

Comments
 (0)