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

Commit

Permalink
update(autocomplete): fixes somewhat major bug introduced in RC3 wher…
Browse files Browse the repository at this point in the history
…e autocomplete was not functioning at all

This was due to the scroll lock being a bit too aggressive.  Fixed the logic in scroll lock.
  • Loading branch information
Robert Messerle committed Jun 11, 2015
1 parent 6781771 commit 6911506
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/core/util/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ angular.module('material.core')

// Creates a virtual scrolling mask to absorb touchmove, keyboard, scrollbar clicking, and wheel events
function disableElementScroll() {
var zIndex = $window.getComputedStyle(element[0]).zIndex;
var zIndex = $window.getComputedStyle(element[0]).zIndex - 1;
if (isNaN(zIndex)) zIndex = 99;
var scrollMask = angular.element(
'<div class="md-scroll-mask" style="z-index: ' + zIndex + '">' +
' <div class="md-scroll-mask-bar"></div>' +
Expand All @@ -79,6 +80,8 @@ angular.module('material.core')
// used to stop the keypresses that could cause the page to scroll
// (arrow keys, spacebar, tab, etc).
function disableKeyNav(e) {
//-- temporarily removed this logic, will possibly re-add at a later date
return;
if (!element[0].contains(e.target)) {
e.preventDefault();
e.stopImmediatePropagation();
Expand Down

0 comments on commit 6911506

Please sign in to comment.