-
Notifications
You must be signed in to change notification settings - Fork 741
Modal Component @after:enter event #4149
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
Comments
@genu Since you implemented the |
@robwdwd If I recall, In my testing, if I do something like this: <div class="w-[300px] border h-[300px]">
<VueFlow :nodes="nodes" :edges="edges"/>
</div> it works with no problem. I'm also not able to run your sample code above. where is If possible, please create a minimal repro with the issue for me to be able to look into this in depth. |
Would you be able to provide a reproduction? 🙏 More infoWhy do I need to provide a reproduction?Reproductions make it possible for us to triage and fix issues quickly with a relatively small team. It helps us discover the source of the problem, and also can reveal assumptions you or we might be making. What will happen?If you've provided a reproduction, we'll remove the label and try to reproduce the issue. If we can, we'll mark it as a bug and prioritise it based on its severity and how many people we think it might affect. If How can I create a reproduction?We have templates to create a minimal reproduction:
Please ensure that the reproduction is as minimal as possible. See more details in our guide. You might also find these other articles interesting and/or helpful: |
@genu - The specific issue was described here In particular. bcakmakoglu/vue-flow#1365 (reply in thread) Width and Height are already done here.
I’ll try and create a reproduction tomorrow for you. |
@genu - Great, that works perfectly |
Description
During creation of a flow diagram using vue-flow inside a modal there's an issue with the edge/connectors not lining up correctly and this is due to the transition/animation and to resolve the issue I need to recalculate the flow chart node positions after the transition/animation has ended.
I see there is a after:leave event but would be useful to have a 'after:enter' that fires off after the overlay/modal transitions/animations are finished.
I've tried using @animationed and @transitionend (they don't fire) and also update:open but that fires before the transition is done.
Additional context
As a workaround for now I'm listening the the update:open event and then setting a timer to wait for a bit then updating the nodes, which isn't ideal but work. Also turning of transitions on the model works.
The text was updated successfully, but these errors were encountered: