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

Template tag's innerHTML doesn't work #90

Open
patarapolw opened this issue Jun 16, 2019 · 0 comments
Open

Template tag's innerHTML doesn't work #90

patarapolw opened this issue Jun 16, 2019 · 0 comments

Comments

@patarapolw
Copy link

patarapolw commented Jun 16, 2019

Custom tag's innerHTML doesn't work as argument, but does work as innerHTML attribute.

This doesn't work

console.log(h("template", {attrs: {slot: "button-content"}}, [
    h("i.fas.fa-school.nav-icon", {attrs: {
        style: "transform: scale(0.8); margin-left: -0.1em;",
        "v-b-tooltip.hover": "",
        title: "Lessons"
    }})
]).outerHTML);

This works

console.log(h("template", {attrs: {slot: "button-content"}, innerHTML: h("i.fas.fa-school.nav-icon", {attrs: {
    style: "transform: scale(0.8); margin-left: -0.1em;",
    "v-b-tooltip.hover": "",
    title: "Lessons"
}}).outerHTML},
).outerHTML);
@patarapolw patarapolw changed the title Custom tag's innerHTML doesn't work Template tag's innerHTML doesn't work Jun 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant