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

Commit 44fda3d

Browse files
committed
fix(disableScroll): fix z-index getting set too large
closes #3501
1 parent 1a15d99 commit 44fda3d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/core/util/util.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@ angular.module('material.core')
7171

7272
// Creates a virtual scrolling mask to absorb touchmove, keyboard, scrollbar clicking, and wheel events
7373
function disableElementScroll() {
74-
var zIndex = $window.getComputedStyle(element[0]).zIndex - 1;
75-
if (isNaN(zIndex)) zIndex = 50;
74+
var zIndex = 50;
7675
var scrollMask = angular.element(
7776
'<div class="md-scroll-mask" style="z-index: ' + zIndex + '">' +
7877
' <div class="md-scroll-mask-bar"></div>' +

0 commit comments

Comments
 (0)