Skip to content

Uncaught TypeError: Cannot read property 'firstElementChild' of undefined #42

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

Open
edulan opened this issue May 2, 2016 · 6 comments
Open

Comments

@edulan
Copy link

edulan commented May 2, 2016

I have an error when quickly adding and removing an element from DOM:

Uncaught TypeError: Cannot read property 'firstElementChild' of undefined

Seems that __resizeTriggers__ is set to false in the time that resetTriggers is called.

This also happens in react-virtualized package. See this issue for more information bvaughn/react-virtualized#150

@Cnordbo
Copy link

Cnordbo commented Jun 13, 2016

Got the same issue in Edge And Chrome using ReactJS.

@jonataswalker
Copy link

The last commit on this project was Dec 5, 2014. It seems to me that this is abandoned. I created a very close to this project here (https://github.com/jonataswalker/watch-element-resize.js).

@SidduSomething
Copy link

Have the same issue

@klaemo
Copy link

klaemo commented Aug 10, 2016

Seeing this in the wild as well. According to our error tracking system this happens 97% on IE or Edge.

@alexlawrence
Copy link

Getting the same error. For me it´s happening during a unit test run. So far no idea what´s causing it.

Picking up what @jonataswalker said: Is the project still maintained @sdecima ?

@yanghuifeng1234
Copy link

it needs to add a parameter[true] to remove scroll event listener. Right?

element.removeEventListener('scroll', scrollListener);

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

No branches or pull requests

7 participants