-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[docs] Use Base UI
Portal
for the quick filter recipe
#10188
Conversation
Netlify deploy previewNetlify deploy preview: https://deploy-preview-10188--material-ui-x.netlify.app/ Updated pagesNo updates. These are the results for the performance tests:
|
<GridToolbarQuickFilter />, | ||
document.getElementById('filter-panel'), | ||
)} | ||
<Portal container={() => document.getElementById('filter-panel')}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would break during server side rendering, I guess.
<GridToolbarQuickFilter />, | ||
document.getElementById('filter-panel')!, | ||
)} | ||
<Portal container={() => document.getElementById('filter-panel')}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have doubt about the types in https://github.com/mui/material-ui/blob/ffa4751a513cee56a8cd069c788a209d8beae7c7/packages/mui-base/src/Portal/Portal.types.ts#L15. This feels so strange. Why should it allow <Portal container={() => null}>
<Portal container={() => document.getElementById('filter-panel')}> | |
<Portal container={() => document.getElementById('filter-panel')!}> |
<GridToolbarQuickFilter />, | ||
document.getElementById('filter-panel'), | ||
)} | ||
<Portal container={() => document.getElementById('filter-panel')}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would break during server side rendering, I guess.
….tsx Co-authored-by: Olivier Tassinari <[email protected]> Signed-off-by: Danail Hadjiatanasov <[email protected]>
Based on #10121 (comment)