Skip to content

Commit bcc4526

Browse files
Yuriyamol2jcommerce
Yuriy
authored andcommitted
Previous scrolling to invalid form element is not being canceled on hitting submit multiple times #21715
1 parent 4192ac1 commit bcc4526

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)