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

Commit d75b592

Browse files
author
Robert Messerle
committed
fix(autocomplete): fixes z-index issues with autocomplete menu
1 parent daa2c85 commit d75b592

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/components/autocomplete/autocomplete.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ md-autocomplete {
6868
position: relative;
6969
overflow: visible;
7070
height: 40px;
71+
&.md-menu-showing {
72+
z-index: $z-index-backdrop + 1;
73+
}
7174
md-progress-linear[md-mode=indeterminate] {
7275
position: absolute;
7376
bottom: 0; left: 0; width: 100%;

src/components/autocomplete/js/autocompleteDirective.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ function MdAutocomplete ($mdTheming, $mdUtil) {
132132
return '\
133133
<md-autocomplete-wrap\
134134
layout="row"\
135-
ng-class="{ \'md-whiteframe-z1\': !floatingLabel }"\
135+
ng-class="{ \'md-whiteframe-z1\': !floatingLabel, \'md-menu-showing\': !$mdAutocompleteCtrl.hidden }"\
136136
role="listbox">\
137137
' + getInputElement() + '\
138138
<md-progress-linear\

0 commit comments

Comments
 (0)