fix(autocomplete): remove invalid aria markup (#7107)

Removes the `aria-multiline` attribute, because it is not allowed on a `role="combobox"`.

Fixes #7100.
This commit is contained in:
Kristiyan Kostadinov
2017-09-29 22:12:25 +02:00
committed by Andrew Seguin
parent daa388013b
commit 6bd6b9f1eb
2 changed files with 0 additions and 6 deletions
@@ -99,7 +99,6 @@ export function getMatAutocompleteMissingPanelError(): Error {
'role': 'combobox',
'autocomplete': 'off',
'aria-autocomplete': 'list',
'aria-multiline': 'false',
'[attr.aria-activedescendant]': 'activeOption?.id',
'[attr.aria-expanded]': 'panelOpen.toString()',
'[attr.aria-owns]': 'autocomplete?.id',
@@ -1154,11 +1154,6 @@ describe('MatAutocomplete', () => {
.toEqual('list', 'Expected aria-autocomplete attribute to equal list.');
});
it('should set aria-multiline to false', () => {
expect(input.getAttribute('aria-multiline'))
.toEqual('false', 'Expected aria-multiline attribute to equal false.');
});
it('should set aria-activedescendant based on the active option', async(() => {
fixture.componentInstance.trigger.openPanel();
fixture.detectChanges();