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.

`NaN` is an invalid value for the `height` css style property

See original GitHub issue
`NaN` is an invalid value for the `height` css style property

My textarea is invisible initially, and the first render gives that error.

I stepped through the code, and it’s a result of calculateNodeStyling returning NaN props. Perhaps fallback them to 0 to avoid this?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:33 (14 by maintainers)

github_iconTop GitHub Comments

3reactions
Andaristcommented, Mar 25, 2018

I’ve released a new version, please check it out and report back if you find any issues with it or if it didn’t fix your original issue.

Closing as “possibly fixed” but feel free to revive the thread if necessary.

3reactions
jbfmcommented, Mar 20, 2018

@Andarist, @jeffijoe I’ve implemented a PoC here https://codesandbox.io/s/48yjjrxvz0

The issue appears when you use minRows and mount it on a DOM node not yet in the tree.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Warning: `NaN` is an invalid value for the `height` css style ...
I'm getting the following warnings in a Jest test: console.error node_modules/fbjs/lib/warning.js:33 Warning: `NaN` is an invalid value for ...
Read more >
`NaN` is an invalid value for the `background` css style ...
I changed the value of the background property to a string literal and that fixed the issue. enter={{ background: `${stripe.background}`, }}.
Read more >
`NaN` is an invalid value for the `width` css style property - Web
Everytime I join a meeting, I always get this error in the console, though I can successfully join a meeting, it just bothers...
Read more >
Warning: `NaN` is an invalid value for the `height` css style ...
I'm getting the following warnings in a Jest test: console. error node_modules/fbjs/lib/warning. js:33 Warning: `NaN` is an invalid value for the `height` css...
Read more >
React DOM element's style property name or value should not ...
React Warning: NaN is an invalid value for the fontSize css style property. Was this documentation helpful? Analyze Your GitHub Project Now.
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