diff --git a/packages/x-data-grid/src/components/panel/GridPreferencesPanel.tsx b/packages/x-data-grid/src/components/panel/GridPreferencesPanel.tsx index fe3083aa87ac..03913dc78cf2 100644 --- a/packages/x-data-grid/src/components/panel/GridPreferencesPanel.tsx +++ b/packages/x-data-grid/src/components/panel/GridPreferencesPanel.tsx @@ -6,10 +6,7 @@ import { GridPreferencePanelsValue } from '../../hooks/features/preferencesPanel import { useGridApiContext } from '../../hooks/utils/useGridApiContext'; import { useGridRootProps } from '../../hooks/utils/useGridRootProps'; -export const GridPreferencesPanel = React.forwardRef< - HTMLDivElement, - React.HTMLAttributes ->(function GridPreferencesPanel(props, ref) { +export function GridPreferencesPanel() { const apiRef = useGridApiContext(); const columns = useGridSelector(apiRef, gridColumnDefinitionsSelector); const rootProps = useGridRootProps(); @@ -23,16 +20,14 @@ export const GridPreferencesPanel = React.forwardRef< return ( 0 && preferencePanelState.open} id={preferencePanelState.panelId} aria-labelledby={preferencePanelState.labelId} {...rootProps.slotProps?.panel} - {...props} {...rootProps.slotProps?.basePopper} > {panelContent} ); -}); +}