Skip to content

Commit 5c6e3df

Browse files
crisbetotinayuangao
authored andcommitted
build: autocomplete test failure in iOS Safari (#7906)
1 parent fe08c2b commit 5c6e3df

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/lib/autocomplete/autocomplete.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1229,8 +1229,8 @@ describe('MatAutocomplete', () => {
12291229

12301230
it('should fall back to above position if panel cannot fit below', async(() => {
12311231
// Push the autocomplete trigger down so it won't have room to open "below"
1232-
inputReference.style.top = '600px';
1233-
inputReference.style.position = 'relative';
1232+
inputReference.style.bottom = '0';
1233+
inputReference.style.position = 'fixed';
12341234

12351235
fixture.componentInstance.trigger.openPanel();
12361236
fixture.detectChanges();
@@ -1247,8 +1247,8 @@ describe('MatAutocomplete', () => {
12471247

12481248
it('should align panel properly when filtering in "above" position', async(() => {
12491249
// Push the autocomplete trigger down so it won't have room to open "below"
1250-
inputReference.style.top = '600px';
1251-
inputReference.style.position = 'relative';
1250+
inputReference.style.bottom = '0';
1251+
inputReference.style.position = 'fixed';
12521252

12531253
fixture.componentInstance.trigger.openPanel();
12541254
fixture.detectChanges();

0 commit comments

Comments
 (0)