-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Box] chrome 88: Failed to execute 'px' on 'CSS': The provided double value is non-finite. #24519
Comments
Note that it doesn't reproduce in v5: https://codesandbox.io/s/box-issue-with-undefined-forked-y4f2g?file=/demo.js. |
I've started investigating the issue to fix it. Any comment is welcomed. |
I have opened a related issue on JSS: cssinjs/jss#1445 as it could be one great resolution path. We also had a close issue #24182 that was about developers doing: |
@ImanMahmoudinasab I've got the same error. To reproduce: |
@oliviertassinari Also, I'd like to laugh with you on this: |
@lichkessel I'm taking care of the Regarding |
I don't know if this is related but we are experiencing something similar with users that upgraded to Chrome 88. This issue for us seems to be related |
Maybe it is worth to silently fall back to |
The issue with the Box is fixed in #24527. It will be released soon or later. Regarding the other cases, make sure you are not providing If you find a place where the NaN is generated from Material-UI, and you have a reproduction to prove it like it was the case with the Box in this issue (#24519), please open a new issue. |
Current Behavior 馃槸
Setting
undefined
value to the margin, padding,... props of aBox
component would throw the following exception. This issue only is reproducible on chrome 88.Expected Behavior 馃
Should ignore
undefined
value for props.Steps to Reproduce 馃暪
https://codesandbox.io/s/box-issue-with-undefined-forked-hxp13
The text was updated successfully, but these errors were encountered: