Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
fix(mdUtil): move comment nodes as well when reenabling scroll
Browse files Browse the repository at this point in the history
Closes #2592.

The comment nodes were being moved to the virtual scroll container,
but they were not moved back to the disabled target when the scroll
was reenabled.
  • Loading branch information
Gustavo Henke authored and ThomasBurleson committed Apr 28, 2015
1 parent 8eefb7a commit 6a5a6a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/util/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ angular.module('material.core')
}

return function restoreScroll() {
disableTarget.append(virtualScroller.children());
disableTarget.append(virtualScroller[0].childNodes);
wrapperEl.remove();
angular.element($window).off('resize', computeSize);
disableTarget.attr('style', restoreStyle || false);
Expand Down

0 comments on commit 6a5a6a7

Please sign in to comment.