Skip to content
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

TooltipWithBounds gives warning: React does not recognize the getRects prop on a DOM element #289

Closed
emepyc opened this issue May 10, 2018 · 1 comment
Labels

Comments

@emepyc
Copy link

emepyc commented May 10, 2018

I'm trying to use the TooltipWithBounds component
(React 16.2.0 and @vx/tooltip 0.0.161)

{tooltipOpen && (
    <Tooltip.TooltipWithBounds
        key={Math.random()}
        top={tooltipTop}
        left={tooltipLeft}
    >
        <strong>{tooltipData.count}</strong>
    </Tooltip.TooltipWithBounds>
)}

And I'm getting this Warning:

warning.js:33 Warning: React does not recognize the `getRects` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `getrects` instead. If you accidentally passed it from a parent component, remove it from the DOM element.
    in div (created by Tooltip)
    in Tooltip (created by TooltipWithBounds)
    in TooltipWithBounds (created by withBoundingRects())
    in withBoundingRects() (created by MechanismsSummary)
@williaster
Copy link
Collaborator

Hi @emepyc! thanks for checking out vx and raising this issue. I imagine props are being spread somewhere where they shouldn't be, I'll take a look asap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants