Skip to content

Commit

Permalink
Previous scrolling to invalid form element is not being canceled on h…
Browse files Browse the repository at this point in the history
…itting submit multiple times #21715
  • Loading branch information
yvechirko committed Apr 2, 2019
1 parent fd2771b commit 3e0836e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/web/mage/validation.js
Original file line number Diff line number Diff line change
Expand Up @@ -1958,7 +1958,7 @@
}

if (firstActive.length) {
$('html, body').animate({
$('html, body').stop().animate({
scrollTop: firstActive.offset().top
});
firstActive.focus();
Expand Down

0 comments on commit 3e0836e

Please sign in to comment.