From bb9f21bbef23ec65b8c90d22fa823dd4bd673695 Mon Sep 17 00:00:00 2001 From: DiegoAndai Date: Wed, 2 Oct 2024 10:10:03 -0300 Subject: [PATCH] Missing material base popper --- packages/mui-material/src/Popper/BasePopper.tsx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/packages/mui-material/src/Popper/BasePopper.tsx b/packages/mui-material/src/Popper/BasePopper.tsx index 235874aab7a8e9..12b3ec436af335 100644 --- a/packages/mui-material/src/Popper/BasePopper.tsx +++ b/packages/mui-material/src/Popper/BasePopper.tsx @@ -77,7 +77,7 @@ const useUtilityClasses = (ownerState: any) => { const defaultPopperOptions = {}; -const PopperTooltip = React.forwardRef(function PopperTooltip< +const PopperTooltip = React.forwardRef(function PopperTooltip< RootComponentType extends React.ElementType, >(props: PopperTooltipProps, forwardedRef: React.ForwardedRef) { const { @@ -239,10 +239,9 @@ const PopperTooltip = React.forwardRef(function PopperTooltip< /** * @ignore - internal component. */ -const Popper = React.forwardRef(function Popper( - props: PopperProps, - forwardedRef: React.ForwardedRef, -) { +const Popper = React.forwardRef(function Popper< + RootComponentType extends React.ElementType, +>(props: PopperProps, forwardedRef: React.ForwardedRef) { const { anchorEl, children,