question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

e.target.className.indexOf is not a function

See original GitHub issue

Unfortunately 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:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
wuweiweiwucommented, Sep 7, 2018

@dmydry Awesome! thanks for contributing!

0reactions
dmydrycommented, Sep 6, 2018

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found