react-popover icon indicating copy to clipboard operation
react-popover copied to clipboard

Cannot read property 'getBoundingClientRect' of null

Open shinux opened this issue 8 years ago • 2 comments

What caused this error and how to avoid it.

shinux avatar Aug 12 '16 10:08 shinux

I believe this happens when the Popover element does not have a child; I made this mistake when first learning how to use this, since the docs lack examples. Do you also see Warning: Failed prop type: Required prop 'children' was not specified in 'popover' when you scroll back up the console? Did you look at the example code in the repo to see how to use this component?

https://github.com/littlebits/react-popover/blob/master/examples/jsx/main.js

rchanou avatar Oct 03 '16 23:10 rchanou

This might be a bug or it might be that we need better error reporting for the user. I'll need to investigate further. If you can please provide me with sample code reproducing the issue that would be great. Thanks!

jasonkuhrt avatar Jan 23 '17 02:01 jasonkuhrt