Skip to content

Commit 9c99070

Browse files
crisbetoandrewseguin
authored andcommitted
fix(material/autocomplete): prevent inert host node from affecting surrounding layout (#21649)
Similar to #21246. Prevents the inert host node for `mat-autocomplete` from affecting the layout around it. (cherry picked from commit 3bbc0a0)
1 parent 0134ac7 commit 9c99070

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/material-experimental/mdc-autocomplete/autocomplete.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,7 @@
4747
}
4848
}
4949

50+
// Prevent the overlay host node from affecting its surrounding layout.
51+
mat-autocomplete {
52+
display: none;
53+
}

src/material/autocomplete/autocomplete.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,7 @@ $mat-autocomplete-panel-border-radius: 4px !default;
4343
}
4444
}
4545

46+
// Prevent the overlay host node from affecting its surrounding layout.
47+
mat-autocomplete {
48+
display: none;
49+
}

0 commit comments

Comments
 (0)