Skip to content

Commit

Permalink
fix(material/autocomplete): prevent hidden overlay from blocking clic…
Browse files Browse the repository at this point in the history
…ks (#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)
  • Loading branch information
crisbeto committed Mar 4, 2024
1 parent fb20320 commit 65aaaf3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/material/autocomplete/autocomplete.scss
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ div.mat-mdc-autocomplete-panel {

&.mat-mdc-autocomplete-hidden {
visibility: hidden;
pointer-events: none;
}
}

Expand Down

0 comments on commit 65aaaf3

Please sign in to comment.