Skip to content

Commit 6bd6b9f

Browse files
crisbetoandrewseguin
authored andcommitted
fix(autocomplete): remove invalid aria markup (#7107)
Removes the `aria-multiline` attribute, because it is not allowed on a `role="combobox"`. Fixes #7100.
1 parent daa3880 commit 6bd6b9f

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

src/lib/autocomplete/autocomplete-trigger.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ export function getMatAutocompleteMissingPanelError(): Error {
9999
'role': 'combobox',
100100
'autocomplete': 'off',
101101
'aria-autocomplete': 'list',
102-
'aria-multiline': 'false',
103102
'[attr.aria-activedescendant]': 'activeOption?.id',
104103
'[attr.aria-expanded]': 'panelOpen.toString()',
105104
'[attr.aria-owns]': 'autocomplete?.id',

src/lib/autocomplete/autocomplete.spec.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1154,11 +1154,6 @@ describe('MatAutocomplete', () => {
11541154
.toEqual('list', 'Expected aria-autocomplete attribute to equal list.');
11551155
});
11561156

1157-
it('should set aria-multiline to false', () => {
1158-
expect(input.getAttribute('aria-multiline'))
1159-
.toEqual('false', 'Expected aria-multiline attribute to equal false.');
1160-
});
1161-
11621157
it('should set aria-activedescendant based on the active option', async(() => {
11631158
fixture.componentInstance.trigger.openPanel();
11641159
fixture.detectChanges();

0 commit comments

Comments
 (0)