-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
Initial Collapse stuck on 'expanding' #29
Comments
Might be a similar issue to #20. |
Hi @marcopixel, thank you for reporting the issue. I think you pasted the wrong StackBlitz link. However, I was able to find it by browsing your profile space. As far as I can see, there are no issues: Maybe the reproduction is still WIP? |
Hi @smastrom - thanks for the quick response and feedback, appreciate it 😄 I've corrected the StackBlitz link now, also i've fixed a few minor things which i've noticed in your screenshot (maily TinyMCE not initializing in FF because of a CORS issue) so the issue wouldn't even show up on your end because the fallback is just rendering a normal textarea field instead. If you can please try it again 🙏 It's pretty consistent on my end and i can trigger it by refreshing the window inside StackBlitz like 9/10 times, seems like it fails to properly go to the end height (since it grows while transitioning) and thus gets stuck at the last height value before change. You can see it pretty clearly cutoff in the video down below: Timeline.1.mp4 |
Yes, I now understand what's happening. Since TinyMCE loads aynchronously, most of the times it is already loaded before expanding, sometimes it is loaded while transitioning. When that happens, fails to enter the Same happens for other scenarios where for whatever reason, a child may change its height while expanding. I need to reason a little bit about how to work around this as I'd like to find a rock solid solution. For the moment, some workarounds that comes to my mind are:
Thank you again for providing the reproduction, I will keep you posted about any progress in the next hours or days. |
Just wanted you to know that i've cloned your pull request and i can verify it is indeed working now as expected :) |
Yeah, I just need to write a couple of tests and then it will be ready to go. Unfortunately I have been a bit busy at work at the moment but I am confident this will be merged the next week. |
No worries, didn't want to stress ya. Just wanted to verify that the issue is fixed with your changes :) |
Description
I've made a wrapper component with your library and when setting the parent props to
expanded
true and if there's an element inside changing size it will freeze at the expanding stage without any errors. I've added as an example TinyMCE but this will happen with other elements changing the size while transitioning.Reproduction
https://stackblitz.com/edit/vitejs-vite-1wliil?file=src%2FApp.vue,src%2Fcomponents%2FCollapse.vue,src%2Fcomponents%2FEditor.vue
Steps to Reproduce:
Expected: The collapsed content should be extended completly and all contents should be visible.
Actual: The collapsed content is partially cutoff and not completly visible until we reopen the collapse.
Aufzeichnung.2024-06-26.093858.1.mp4
The text was updated successfully, but these errors were encountered: