Replies: 3 comments 3 replies
-
This is definitely an issue. x-trap also affects x-transition as well. I haven't been able to dig any deeper... but I've removed the trap plugin until I can revisit. |
Beta Was this translation helpful? Give feedback.
-
I gave it another look last night. It seems like the adding the trap attribute AFTER the transition duration works as expected. So if the duration is 300ms, a set timeout for 350 works fine. Combined with the intersection, works fine. Also, this broken animation doesn't seem to affect safari. Weird! |
Beta Was this translation helpful? Give feedback.
-
Still seeing this Screen_Recording_2023-01-16_at_5.03.46_PM.mp4 |
Beta Was this translation helpful? Give feedback.
-
When using
x-trap
andx-collapse
on the same element, the height transition looks odd, since the browser is jumping immediately to the first focusable element the content becomes partially scrolled and the animation looks broken.Here's an example sandbox showing the difference https://codesandbox.io/s/alpine-trap-collapse-bug-87o0y
Is there a work around anyone knows for this?
Beta Was this translation helpful? Give feedback.
All reactions