mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
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:
committed by
Andrew Seguin
parent
daa388013b
commit
6bd6b9f1eb
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user