Skip to content
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

CSS display bug in production #1927

Closed
nacimgoura opened this issue Jun 19, 2018 · 3 comments
Closed

CSS display bug in production #1927

nacimgoura opened this issue Jun 19, 2018 · 3 comments

Comments

@nacimgoura
Copy link
Contributor

nacimgoura commented Jun 19, 2018

Hello,
i encounter a bug.
when I refresh my page by emptying my cache I'm having big display problems.
For example, no input :

capture d ecran 2018-06-19 a 15 21 01

And after login (the size of the site is 1em)
capture d ecran 2018-06-19 a 15 20 40

Also, I only encounter this problem in production.

Environment

  • React-admin version: 2.0.3
  • React version: 16.4.1
  • Browser: Chrome 67
@Kmaschta
Copy link
Contributor

Is this related to #1782 ?

Check your minified classes. Do you have a different Material-UI version installed from your dependencies ?

@nacimgoura
Copy link
Contributor Author

In my dependencies, I have

"@material-ui/core": "~1.2.2",
"@material-ui/icons": "~1.1.0"

yes, it seems to be the same problem. When I return to the 1st page I do not encounter the bug until I empty my cache.

@Kmaschta
Copy link
Contributor

Kmaschta commented Jun 19, 2018

I close this issue since it's a duplicate of #1782 (I re-opened it)

There is a workaround to make it work on production: use a custom JssProvider with a global generateClassName function (example: #1782 (comment))

Thanks for reporting this bug, feel free to add any details you have on the other issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants