Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove obsolete getContentAnchorEl prop from LookupFilter MenuProps for MUIv5 #676

Conversation

sjdemartini
Copy link
Contributor

Related Issue

n/a

Description

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.

Related PRs

n/a

Impacted Areas in Application

List general components of the application that this PR will affect:

  • LookupFilter

Additional Notes

This should only be done in the MUI v5 next branch, it seems.

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.
@Domino987 Domino987 merged commit 31a7963 into material-table-core:next Nov 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants