Skip to content

[DataGrid] Add missing slotProps to panel interface#22651

Open
cherniavskii wants to merge 6 commits into
mui:masterfrom
cherniavskii:add-missing-panel-slotProps
Open

[DataGrid] Add missing slotProps to panel interface#22651
cherniavskii wants to merge 6 commits into
mui:masterfrom
cherniavskii:add-missing-panel-slotProps

Conversation

@cherniavskii

@cherniavskii cherniavskii commented Jun 1, 2026

Copy link
Copy Markdown
Member

While creating a customization recipe for a support request, I noticed that some props are being passed in runtime but are missing in TS interface (e.g. placement).
I've updated the interface to reflect what is actually being passed in runtime.

I've also added a customization demo that mimics the default v7 behavior (this is what the support request was about).

Preview: https://deploy-preview-22651--material-ui-x.netlify.app/x/react-data-grid/filtering/customization/#customize-the-filter-panel-position

@cherniavskii cherniavskii added type: bug It doesn't behave as expected. scope: data grid Changes related to the data grid. labels Jun 1, 2026
@code-infra-dashboard

code-infra-dashboard Bot commented Jun 1, 2026

Copy link
Copy Markdown

Deploy preview

Bundle size

Bundle Parsed size Gzip size
@mui/x-data-grid 0B(0.00%) 0B(0.00%)
@mui/x-data-grid-pro 0B(0.00%) 0B(0.00%)
@mui/x-data-grid-premium 0B(0.00%) 0B(0.00%)
@mui/x-charts 0B(0.00%) 0B(0.00%)
@mui/x-charts-pro 0B(0.00%) 0B(0.00%)
@mui/x-charts-premium 0B(0.00%) 0B(0.00%)
@mui/x-date-pickers 0B(0.00%) 0B(0.00%)
@mui/x-date-pickers-pro 0B(0.00%) 0B(0.00%)
@mui/x-tree-view 0B(0.00%) 0B(0.00%)
@mui/x-tree-view-pro 0B(0.00%) 0B(0.00%)
@mui/x-license 0B(0.00%) 0B(0.00%)

Details of bundle changes


Check out the code infra dashboard for more information about this PR.

}

export default function CustomFilterPanelPosition() {
export default function CustomFilterPanelPositionNoSnap() {

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this demo customizes the panel placement that is not visible when the screenshot is taken, I've excluded it from being screenshoted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: data grid Changes related to the data grid. type: bug It doesn't behave as expected.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant