Skip to content
This repository has been archived by the owner on Nov 24, 2023. It is now read-only.

getBoundingClientRect Error #27

Open
ajaichemmanam opened this issue Apr 29, 2019 · 1 comment
Open

getBoundingClientRect Error #27

ajaichemmanam opened this issue Apr 29, 2019 · 1 comment

Comments

@ajaichemmanam
Copy link

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?

@kumarabhishek-github
Copy link

did u get the error resolved? please help getting the same issue

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

No branches or pull requests

2 participants