Fix window scroll container (#16009)

Fix window scroll container
This commit is contained in:
John Molakvoæ 2019-06-19 19:42:38 +02:00 committed by GitHub
commit 552657223a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -3523,9 +3523,9 @@
var _this = this;
var $scrollContainer = this.$container;
if ($scrollContainer[0] === window) {
// need to use "body" to animate scrolling
// need to use "html" to animate scrolling
// when the scroll container is the window
$scrollContainer = $('body');
$scrollContainer = $('html');
}
$scrollContainer.animate({
// Scrolling to the top of the new element