getBoundingClientRect Error
I am using the components from src (for customising).
Throws the error
TypeError: Cannot read property 'getBoundingClientRect' of undefined isMouseOverElement ./src/Annotation/utils/isMouseHovering.js:3 1 | import React, { PureComponent as Component } from 'react' 2 |
3 | const isMouseOverElement = ({ elem, e }) => { 4 | const { pageY, pageX } = e 5 | const { left, right, bottom, top } = elem.getBoundingClientRect()
from
src/Annotation/utils/isMouseHovering.js:32 29 | const elem = this.el 30 | 31 | this.setState({
32 | isHoveringOver: isMouseOverElement({ elem, e }) | ^ 33 | }) 34 | } 35 |
I see that v0.9.9 is not updated in github. Was the error fixed in latest one? When I npm install, the package works as expected.
Can you help me with this?
did u get the error resolved? please help getting the same issue