You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The <TooltipWithBounds /> component redefines TooltipProps instead of inheriting it from <Toolip/> and thus TypeScript is complaining that it doesn't recognize unstyled.
The text was updated successfully, but these errors were encountered:
tbassetto
changed the title
TooltipWithBounds doesn't have the new unstyled props
TooltipWithBounds types do not have the new unstyled props
May 12, 2020
Thanks for flagging this @tbassetto. I'm happy to review a PR if you/others are up for it.
I think to fix it properly we'd need to not just inherit the types from Tooltip, but remove the styles set by TooltipWithBounds and instead pass top and left to Tooltip so it can handle the merging of styles or not applying them if unstyled is set.
The
<TooltipWithBounds />
component redefinesTooltipProps
instead of inheriting it from<Toolip/>
and thus TypeScript is complaining that it doesn't recognizeunstyled
.The text was updated successfully, but these errors were encountered: