Skip to content

Commit 65aaaf3

Browse files
committed
fix(material/autocomplete): prevent hidden overlay from blocking clicks (#28677)
The autocomplete hides its dropdown if there are no options, but it is still clickable. These changes add `pointer-events: none` to prevent it from blocking interactions. Fixes #28670. (cherry picked from commit 979e903)
1 parent fb20320 commit 65aaaf3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/material/autocomplete/autocomplete.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ div.mat-mdc-autocomplete-panel {
4646

4747
&.mat-mdc-autocomplete-hidden {
4848
visibility: hidden;
49+
pointer-events: none;
4950
}
5051
}
5152

0 commit comments

Comments
 (0)