-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
Re-render withStyle HOC on redux action issue #16029
Comments
I think this applies to any component that does some layout computations. In general I would just remount the whole app when switching direction. This should solve most of the subtle issues with regards to layout. |
@eps1lon Remount application is the possible solution, but why to do that if until now we found only this issue. If the problem is in jss-rtl I will address this issue to their thread. |
Could you share your full example? We have an RTL switch in our docs as well and no issues with label positioning. Did you follow our right-to-left guide? |
@eps1lon As I said, We did rtl-guide and install jss-rtl plugin (this was the first step in our upgrade)
This is our styles const
This is out input renderer function:
This render method:
This is class HOC export:
@eps1lon Do you need also redux code here? |
What about setting the |
@sashberd Yes we did the whole rtl guide as it is written in MUI page: This is html direction when the problem is exists: and this is jss creation from context object: Here the context creation code:
|
Could you put together a clonable repository? It's very hard to debug CSS issues without devtools. |
@eps1lon I cannot provide to you a fork to repo cause it is not my private, but organization . I could try provide to you access to our stg env to illustrate you the issue online |
No I mean some isolated, minimal example. This helps a lot tracking down the issue. |
@eps1lon Sorry I do not have such option. This specific component is not stand alone and has multiple dependencies from server, env etc. Thus, this is not possible |
@oliviertassinari You close issue that was not resolved and the problem exists now in material ui... I cannot provide to you code, but I provided enough information in order to reproduce this issue in yours engines. So why close and not resolve? |
@sashberd We ask our users to provide live reproductions for two reasons:
|
same with Switch component |
Hi,
I am now upgrading my application to MUI v3.9.3. We are using withStyles HOC in our upgrade. Our application supports both RTL and LTS languages
We have a switcher languages button that is activate redux action for RTL or LTR prop.
The issue is that all UI switches to new direction, but classes from withStyles are not. On page reload all becomes good.
The major issue we have with TextFields (floating) label that is not align by RTL. I found this issue #9332 that is explains about jss-rtl plugin, that was installed in our application from the start of MUI upgrade. Moreover, our RTL-LTR switch is working well besides issue below.
After some searching I suppose that the issue is only with
MuiInputLabel-shrink
class,transform-origin
css property, which is not updates on direction switch.Below attached example from application when I switched from RTL to LTR and (floating) labels visibility issue:
In that specific example If the transform-origin css property changed to top-left, every thing become good (The value of the css property become good after reload)
If there is missing some information i this issue will be glad to provide it
The text was updated successfully, but these errors were encountered: