-
-
Notifications
You must be signed in to change notification settings - Fork 142
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
Catch the finished promise AbortError and ignores it #259
Conversation
Think there's any downsides to doing this? |
Yes, I think there could be unforeseen downsides. Thinking about it more, I wouldn't say I like this patch. It doesn't fix the problem, it just covers it up. If the I tested el-transition and Alpine.js yesterday. el-transition has the same problem. Alpine.js doesn't, but the Alpine folks do something completely different in their transition library. I have some time later this week. I can look into it more. |
Ours is a fork of el-transition trying to fix a few things, so it's very similar. I tried to understand how Alpine does it but couldn't quite wrap my head around it. Appreciate your help on this! It's definitely out of my depths. |
Still need support for canceling transitions at each stage
7c246fe
to
c05ac41
Compare
Ok. I tried to fix it without rewriting it, but I couldn't get that to work. Are you okay with me rewriting the transition.js library like this? The code fixes the issues with However, the new transition.js breaks some tests. But I think the broken tests are all timing-related or race condition-like things because the code no longer awaits on the animation Promises. I don't think this will affect production code unless someone relies on these weird timing inconsistencies. Famous last words, though. I'll give a couple of examples of the test problems... The One of the If you're ok with this change, I'll clean things up, fix the broken tests, and squash my commits. |
This is looking good @jaywhy! Will give it a test locally later today, but it seems good to me. |
Looks like it's working great! Anything else to do or is it ready to merge? |
Yes. I think so. |
Thanks so much for this @jaywhy 👍 |
Fixes issue #247 by putting duct tape over it.