Skip to content

Commit 3bbc0a0

Browse files
authored
fix(material/autocomplete): prevent inert host node from affecting surrounding layout (angular#21649)
Similar to angular#21246. Prevents the inert host node for `mat-autocomplete` from affecting the layout around it.
1 parent 66969d3 commit 3bbc0a0

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

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

+4
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

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