[BUG] AnimatePresence mode="popLayout"
assumes LTR, works differently/unexpectedly in RTL
#2952
Labels
bug
Something isn't working
1. Read the FAQs π
β
2. Describe the bug
There is code in
AnimatePresence
'smode="popLayout"
behavior that assumes the current text direction is LTR, because it sets theleft
property instead ofinset-inline-start
.3. IMPORTANT: Provide a CodeSandbox reproduction of the bug
https://codesandbox.io/p/sandbox/x4hf8j
4. Steps to reproduce
5. Expected behavior
The second column should not move as it fades in in RTL direction.
6. Video or screenshots
CleanShot.2024-12-19.at.14.30.20.mp4
7. Environment details
Chrome 131.0.6778.205 on macOS.
The text was updated successfully, but these errors were encountered: