-
-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in client console: Infinity is an invalid value for the height css style property #46
Comments
Interestingly, the warning only shows when render stackgrid inside react-swipeable-views in my case. |
We have the same issue |
The root of this issue is based on ctrlplusb/react-sizeme#120 where This bug is ultimately harmless, as once React has a chance to mount the actual children as DOM nodes, A zero check here should fix the warning message: https://github.com/tsuyoshiwada/react-stack-grid/blob/25e61df87d7ad112a1873a83899d53aa48b079a7/src/components/StackGrid.js#L225 |
Change the line 425 on the newer version of the file StackGrid.js, put any value of height instead of 0. |
I had the same issue with [email protected] and [email protected]. Solved it by changing line 487 to:
|
I'm using "react": "^17.0.0", "react-stack-grid": "^0.7.1", and this issue still persists and I see there is lag on screen because of this error, can anyone please let me know the solution how to resolve this? or any workarounds? @Cantinaband |
I'm having the exact same problem on react "^18.2.0", "react-stack-grid": "^0.7.1". Has someone found a solution yet? |
I've faced the same problem, and found the issue was the [array of elements] to be shown in the Slider is empty [ ]
Hope this may help |
solved the problem for me! Thank you @osomaher2020! |
Complete error in Chrome console:
It didn't locate where that error comes from. It's simply a warning.js error. I'm getting this message after using react-stack-grid.
The text was updated successfully, but these errors were encountered: