Skip to content

Commit b9de9ad

Browse files
committed
MC-35370: Unexpected scrolling of the “Create New Order” page
1 parent abb7d89 commit b9de9ad

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/web/mage/validation.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1971,9 +1971,8 @@ define([
19711971
}
19721972

19731973
if (firstActive.length) {
1974-
parent = firstActive.parent();
19751974
$('html, body').stop().animate({
1976-
scrollTop: parent.offset().top - windowHeight / 2
1975+
scrollTop: firstActive.parent().offset().top - windowHeight / 2
19771976
});
19781977
firstActive.focus();
19791978
}

0 commit comments

Comments
 (0)