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.
  • Loading branch information
crisbeto authored Mar 4, 2024
1 parent 577d070 commit 979e903
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 979e903

Please sign in to comment.