Skip to content

Commit cf04a38

Browse files
committed
fix(material/autocomplete): render overlay next to trigger (#32282)
Switches to rendering the autocomplete's overlay next to the trigger. This resolves some long-standing accessibility issues, because previously the overlay wasn't in the tab order. (cherry picked from commit b33af6b)
1 parent 349708c commit cf04a38

File tree

2 files changed

+133
-111
lines changed

2 files changed

+133
-111
lines changed

src/material/autocomplete/autocomplete-trigger.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -904,7 +904,8 @@ export class MatAutocompleteTrigger
904904
this._getConnectedElement(),
905905
)
906906
.withFlexibleDimensions(false)
907-
.withPush(false);
907+
.withPush(false)
908+
.withPopoverLocation('inline');
908909

909910
this._setStrategyPositions(strategy);
910911
this._positionStrategy = strategy;

0 commit comments

Comments
 (0)