Skip to content

Commit 31a7963

Browse files
authored
Remove obsolete getContentAnchorEl prop from LookupFilter MenuProps (#676)
In MUI v5, the `getContentAnchorEl` prop was removed https://mui.com/material-ui/migration/v5-component-changes/#remove-getcontentanchorel-prop So with this prop still being supplied via MenuProps currently, it leads to the following console error whenever you click on a filter menu from @material-table/core: > Warning: React does not recognize the `getContentAnchorEl` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `getcontentanchorel` instead. If you accidentally passed it from a parent component, remove it from the DOM element. The prop isn't doing anything anymore, and the filter menu still works without it, so it seems it should just be removed in the MUI v5 variant of @material-table/core. Co-authored-by: Steven DeMartini <sjdemartini@users.noreply.github.com>
1 parent fbb1c65 commit 31a7963

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/components/MTableFilterRow/LookupFilter.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ const MenuProps = {
2222
}
2323
},
2424
variant: 'menu',
25-
getContentAnchorEl: null
2625
};
2726

2827
function LookupFilter({

0 commit comments

Comments
 (0)