You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
manniL
changed the title
Nuxt Custom Directives don't seem to register on imported Components (but do work on regular template HTML)
Server-side directives aren't applied on custom components
Oct 20, 2019
Looks like a vue-server-renderer bug to me. Will investigate.
Anyway, you are registering "only" server-side directives here. If you want the typical (client-side) one, you can use a Nuxt plugin to register them globally or use the directives attribute on a specific component or page.
Further read on server-side directives in my blog post
Version
v2.10.1
Reproduction link
https://codesandbox.io/s/codesandbox-nuxt-dyu6u
Steps to reproduce
Strange one... Nuxt Custom Directives don't seem to register on imported Components (but do work when added to regular template HTML)
Reproduction:
https://codesandbox.io/s/codesandbox-nuxt-dyu6u
What is expected ?
Should log both custom directives
What is actually happening?
Only logs the first custom directive. Adding a custom directive to a custom component doesnt register.
The text was updated successfully, but these errors were encountered: