Skip to content
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

[1.9] External template not registering components anymore #250

Closed
Tofandel opened this issue Jul 6, 2022 · 0 comments
Closed

[1.9] External template not registering components anymore #250

Tofandel opened this issue Jul 6, 2022 · 0 comments
Labels

Comments

@Tofandel
Copy link
Contributor

Tofandel commented Jul 6, 2022

I import external templates like

<template src="./templates/TextTemplate.html"></template>

Which contains

<v-text-field type="text"
              :label="translatedLabel"
              v-model="vModel"
              v-bind="bind" v-on="listeners">
    <!-- Pass on all named slots -->
    <slot v-for="slot in Object.keys($slots)" :name="slot" :slot="slot"></slot>

    <!-- Pass on all scoped slots -->
    <template v-for="slot in Object.keys($scopedSlots)" :slot="slot" slot-scope="scope">
        <slot :name="slot" v-bind="scope"></slot>
    </template>
</v-text-field>

In 1.8 it worked properly, in 1.9 it doesn't resolve the v-text-field component and just outputs it as is

If I use the template directly, it works correctly

@KaelWD KaelWD added the bug label Jul 12, 2022
@KaelWD KaelWD closed this as completed in 33a75b6 Jul 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants