Skip to content

Commit 979e903

Browse files
authored
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.
1 parent 577d070 commit 979e903

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/material/autocomplete/autocomplete.scss

+1
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)