`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:
- Created 6 years ago
- Comments:33 (14 by maintainers)
Top 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 >
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 Free
Top 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
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.
@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.