stephenkr / nuxt-feature-toggle

The nuxt feature toggle module

Home Page:https://www.npmjs.com/package/nuxt-feature-toggle

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Renderless component

mrleblanc101 opened this issue · comments

Hi,
This should probably be a renderless component.
Because this add a <div> this can break HTML semantics as <div> is not a valid children for every element.
I will open a PR for this if you want.
I know v-if is not possible on a <template> element since template can't be root child so the only way is to use a render fonction instead of a SFC.
Capture d’écran, le 2021-09-14 à 17 06 54

I've added this to #47. I could split in another PR if you prefer.

@stephenkr Could you check on this ?

Thank you @mrleblanc101 for contributing to the module.

Sorry i havent replied sooner, i'm not actively maintaining this module as much as before. I'll check it every few months.