e.target.className.indexOf is not a function
See original GitHub issueUnfortunately I can’t make a working repro. This is a main reason of this issue.
In our production code we often get client errors with the next traceback:
TypeError: e.target.className.indexOf is not a function
.
Apparently this is the next code: https://github.com/bvaughn/react-virtualized/blob/master/source/vendor/detectElementResize.js#L73
Browser occurrences are quite different (last chrome is in top). Hence it’s not a browser issue.
We use WindowScroller, AutoSizer and List components with quite standart props and behaviour.
<WindowScroller>
{({ height, isScrolling, scrollTop }) => (
<AutoSizer disableHeight>
{({ width }) => (
<List
isScrolling={isScrolling}
overscanRowCount={3}
scrollTop={scrollTop}
autoHeight
height={height}
rowCount={listCount}
rowHeight={rowHeight}
rowRenderer={this.rowRenderer}
width={width}
/>
)}
</AutoSizer>
)}
</WindowScroller>
Could anyone give me a tip, what is a possible reason of this issue?
React | 16.4.1 |
React DOM | 16.4.1 |
react-virtualized | 9.20.1 |
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Error Uncaught TypeError: e.target.className.indexOf is not a ...
No, is when the modal close, but if i remove the data-dismiss the error disappear. I remove the (click) function and the error...
Read more >a[b].target.className.indexOf is not a function, at least not mine
I decide to add the code which prevent the PayPal render in case the component is unmounted and to add some debug logs...
Read more >Uncaught TypeError: a.target.className.indexOf is not a ...
Hello, I have a question, Why when I click a point or bar in Chart Widget, always it throws a exception: Uncaught TypeError:...
Read more >TypeError: el.className.indexOf is not a function
I have link inside svg element. When i click on this element i have error “TypeError: el.className.indexOf is not a function” (o forms.js:23) ......
Read more >I receive typeError when i close my modal - MDBootstrap
Uncaught TypeError: e.target.className.indexOf is not a function at HTMLDocument.mouseup (translator.js:433). I don't think idea about how this is happening ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@dmydry Awesome! thanks for contributing!
@wuweiweiwu done 😉
I didn’t find any tests for the
detectElementResize
listeners. Will be happy to dive deeper into the project and cover if possible.