Skip to content

Commit

Permalink
ENGCOM-4820: [Backport] Previous scrolling to invalid form element is…
Browse files Browse the repository at this point in the history
… not being canceled on h… #22358
  • Loading branch information
sivaschenko authored Apr 26, 2019
2 parents 3835ad5 + 41ebeeb commit 2e0aa0f
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 @@ -1948,7 +1948,7 @@
}

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

0 comments on commit 2e0aa0f

Please sign in to comment.