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.

<Tabs/> sometimes gives an error of "null is not an object" if it's scrollable

See original GitHub issue
  • I have searched the issues of this repository and believe that this is not a duplicate.

Current Behavior

I get TypeError: null is not an object (evaluating 'nodeRef.current.offsetHeight'). when I use Tabs component (variant = “scrollable”) on my iPad. It doesn’t happen consistently. On debug, I got to know it’s coming from Tabs/ScrollbarSize.js Screenshot 2021-06-03 at 7 25 47 PM

Expected Behavior 🤔

Tabs should have work without an error.

Steps to Reproduce 🕹

Steps:

This doesn’t happen consistently so I would leave the page idle (I don’t have an exact time period from the bug filer), and then rotate the device (iPad) from portrait to landscape. https://codesandbox.io/s/dazzling-browser-3hs5d?file=/src/Hello.js&resolutionWidth=1024&resolutionHeight=765 this is what I was able to do, but it takes a period of inactivity in my application, so I’m not sure that you’ll have any luck seeing it. But at least you can see the architecture behind it. Thank you.

Context 🔦

Your Environment 🌎

Material-UI - 4.11.4 React - 17.0.2 Typescript - 4.2.4

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
eps1loncommented, Jun 7, 2021

I added this issue to our backlog because it hints at some false assumptions we have with this particular line of code.

0reactions
github-actions[bot]commented, Jul 18, 2022

Since the issue is missing key information and has been inactive for 7 days, it has been automatically closed. If you wish to see the issue reopened, please provide the missing information.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Microsoft JScript runtime error: 'null' is null or not an object
This error can occur if you are trying to use an object which is null . In that code quite a lot of...
Read more >
Uncaught TypeError: Cannot read property of null - iDiallo
This error occurs when you read a property or call a method on a null object . That's because the DOM API returns...
Read more >
null is not an object (evaluating '_reanimatedmodule.default ...
I have an error in react native null is not an object ''evaluating ... When the migration is complete, you will access your...
Read more >
[OutSystems UI] Null Object In Tabs After Updating To the ...
After updating our OutsystemsUI to the newest version, we started getting the following error in all our mobile apps. null is not an...
Read more >
Handling Events :: Eloquent JavaScript
Event listeners are called only when the event happens in the context of the object they are registered on. <button>Click me</button> <p>No handler...
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