react-popover
react-popover copied to clipboard
Cannot read property 'getBoundingClientRect' of null
What caused this error and how to avoid it.
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
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!