inertia
inertia copied to clipboard
Link component as doesn't render other components
Version:
@inertiajs/vue3version: 1.0.14
Describe the problem:
Link component only render html tag component , but doesn't render other third vue component。 here has same issue https://github.com/inertiajs/inertia/issues/1654 and https://github.com/inertiajs/inertia/issues/1550
I use https://github.com/inertiajs/inertia/issues/1654#issuecomment-1689049845 to test Vue's dynamic <component> tag。but Vue's dynamic <component> tag not has as attribute, it use is attribute。 when i use is it works.
<v-btn>abc</v-btn>
<Component is="v-btn">abc1</Component>
<Link href="/" as="button">Home</Link>
<Link href="/" as="v-btn">Home1</Link>
but, Link is not correct rendered.
I also use :as='v-btn' or :as='VBtn' , it doesn't work.
the console has error