-
-
Notifications
You must be signed in to change notification settings - Fork 185
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
target-el
does not work at-all
#238
Comments
The https://portal-vue.linusb.org/guide/migration.html#mountingportal |
@LinusBorg Thanks. I guess I was not on the right documentation version: https://linusborg.github.io/portal-vue/#/guide?id=rendering-outside-of-the-vue-app I guess there should be some message that this is for version Thanks! |
You're right, I opened #239 to not forget. |
@LinusBorg Regarding my other issue with |
Sure. |
Hello,
I have a Vue app component that only mounts on my left sidebar. What I want to do is to be able to render some content from the left sidebar (which is controlled by Vue) to my main content area. I thought that Portal is the best solution for this as I can keep the logic grouped and not start firing events all over to get things synced.
Initially, I thought I could get away with
vue-simple-portal
but I just could not get it to work. I've always receivedcomponent <portal> is not defined...
. It seems to be buggy (see the bottom of this issue for how I tried to use it).Anyways, I thought that I would just use
portal-vue
since I've used it before and it works.Since I want to some element to be rendered outside of my Vue app, I used the
target-el
property on the portal. However, it does not seem to work:For some reason, it just does not work. Doesn't matter what I try to do. I tried placing the portal target in another location, changing ids, try to find if the property was renamed at some version but could not find anything. What I could find is that all properties I pass to the
<portal>
element are bounded as$attrs
, even thetarget-el
. Maybe it is a bug? Maybe this property was accidentally removed? I could not find this property definition in the component definition either.VueSimplePortal Example
The text was updated successfully, but these errors were encountered: