Skip to content
This repository was archived by the owner on Aug 18, 2023. It is now read-only.

[Bug] Functional components not rendering #13

Open
mornir opened this issue Aug 23, 2020 · 0 comments
Open

[Bug] Functional components not rendering #13

mornir opened this issue Aug 23, 2020 · 0 comments

Comments

@mornir
Copy link
Contributor

mornir commented Aug 23, 2020

I use this serializer to render external link:

<template functional>
  <a
    v-if="props.href && children[0] && children[0].text"
    :href="props.href"
    target="_blank"
    rel="noopener"
    class="underline"
  >
    <slot />
  </a>
</template>

When marking the link bold, the marked text is not rendered:
image

Expected

A bold link:
image

This component handles this case correctly:
https://github.com/nuxt-community/sanity-module/blob/main/src/components/sanity-content.ts

@mornir mornir changed the title [Bug] [Bug] Functional components not rendering Sep 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant