UI: Fix opposite layout rendering after browser refresh#67314
UI: Fix opposite layout rendering after browser refresh#67314Subham-KRLX wants to merge 1 commit into
Conversation
ceea255 to
71425b8
Compare
71425b8 to
8d33e57
Compare
The HTML dir attribute wasn't being set on page load only on language change so RTL layouts defaulted to LTR and appeared flipped I added one line to set it immediately when the component mounts so it works now I couldn't record video due to local environment issues but the fix addresses the root cause. |
There was a problem hiding this comment.
I couldn't record video due to local environment issues but the fix addresses the root cause.
Well it doesn't. Here is a clear build from 3.2.2rc1 source, with your change in it.
Screen.Recording.2026-05-22.at.15.26.54.mov
I don't undestand how you can assert it fixes the issue if you cannot test it due to environment problem.
Closing.
Feel free to re-open if I missed something, I found the root cause and will open a PR.
The HTML dir and lang attributes were not being set on initial page load, only when the language was changed. This caused RTL language users to see LTR layout after refreshing the page.
Fixed by calling updateHtml() with the current language immediately on effect mount, ensuring correct layout direction on every page load.
closes: #67309
Was generative AI tooling used to co-author this PR?