Skip to content

Commit f5a3e43

Browse files
ZeeshanTamboliweb-flow
authored andcommitted
[material-ui][Autocomplete] Remove legacy aria-owns attribute for combobox (#45302)
1 parent 8e30a9d commit f5a3e43

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

packages/mui-material/src/Autocomplete/Autocomplete.test.js

-1
Original file line numberDiff line numberDiff line change
@@ -2043,7 +2043,6 @@ describe('<Autocomplete />', () => {
20432043

20442044
const textbox = getByRole('combobox');
20452045
expect(textbox).to.have.attribute('aria-expanded', 'false');
2046-
expect(textbox).not.to.have.attribute('aria-owns');
20472046
expect(textbox).not.to.have.attribute('aria-controls');
20482047
expect(document.querySelector(`.${classes.paper}`)).to.have.text('No options');
20492048
});

packages/mui-material/src/useAutocomplete/useAutocomplete.js

-1
Original file line numberDiff line numberDiff line change
@@ -1073,7 +1073,6 @@ function useAutocomplete(props) {
10731073

10741074
return {
10751075
getRootProps: (other = {}) => ({
1076-
'aria-owns': listboxAvailable ? `${id}-listbox` : null,
10771076
...other,
10781077
onKeyDown: handleKeyDown(other),
10791078
onMouseDown: handleMouseDown,

0 commit comments

Comments
 (0)