Skip to content

Commit f151545

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

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/web/mage/validation.js

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

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

0 commit comments

Comments
 (0)