We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fc9c24 commit fc4a5c3Copy full SHA for fc4a5c3
app/code/Magento/Checkout/view/frontend/web/js/model/step-navigator.js
@@ -134,11 +134,9 @@ define(
134
});
135
if (steps().length > activeIndex + 1) {
136
var code = steps()[activeIndex + 1].code;
137
- var bodyElem = $.browser.safari || $.browser.chrome ? $("body") : $("html");
138
steps()[activeIndex + 1].isVisible(true);
139
- bodyElem.animate({scrollTop: $('#' + code).offset().top}, 0, function () {
140
- window.location = window.checkoutConfig.checkoutUrl + "#" + code;
141
- });
+ window.location = window.checkoutConfig.checkoutUrl + "#" + code;
+ document.body.scrollTop = document.documentElement.scrollTop = 0;
142
}
143
144
};
0 commit comments