Closed b-hayes closed 1 year ago
You should neither nest a portal-target ion the target element, nor should you nest a <portal>
in the <MouintingPortal>
. You should literally do what the example shows:
`<MountingPortal
mountTo="#mount-target"
to="destination"
>
<p>
Whatever
</p>
</MountingPortal>
``
Yeah, I have tried literally copying the example as well. Sorry I showed my adjusted attempt instead.
also there is this warning if that helps:
[Vue warn]: Property or method "to" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.
found in
---> <TestPortal>
Ive been following the example here: https://portal-vue.linusb.org/api/mounting-portal.html#example-usage
And I just cant seem to get this working is it me or an issue with Mount Portal?