-
-
Notifications
You must be signed in to change notification settings - Fork 187
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
Weird bug causing portal component losing all states & refs #159
Comments
Another interesting behavior: if you edit Vuex store state The bug will be deferred for 1 tick |
Hm, interesting. My first suspicion would be that the same vnodes are re-used when switching from one portal-target to the other, but since they were already used to be mounted in the first target, they don't work correctly in the second one. But if that was the case, a scoped slot instead of a normal one should solve it, but doesn't either. Will look into it further. |
Hey @nodegin I just published 1.5.1-beta.0, you can install it with the npm i portal-vue@next Please test this version and report back if your issue is fixed - it should be. |
Nevermind, this path release won't fix it either. In fact, after taking a second look I think there's not much we could do. In the part of your example that is the "bug", you are, by using And in the other target that you are switching to, the component has to be re-created. There isn't really anything we can do about this, I think. Sorry. |
See the bug in action
This seems is a portal-vue internal bug, currently I am using the
display
hack as workaround.In case codesandbox link dead:
vue-portal-slots.zip
The text was updated successfully, but these errors were encountered: