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

Custom directive unregistered when switching pages. #795

Open
bahulneel opened this issue Oct 1, 2024 · 0 comments
Open

Custom directive unregistered when switching pages. #795

bahulneel opened this issue Oct 1, 2024 · 0 comments
Labels
type: bug Something isn't working

Comments

@bahulneel
Copy link

Environment

  • Operating System: Darwin
  • Node Version: v20.11.1
  • Nuxt Version: 3.13.2
  • CLI Version: 3.13.2
  • Nitro Version: 2.9.7
  • Package Manager: npm@10.8.3
  • Builder: -
  • User Config: srcDir, devtools, extends, modules, storybook, vite, imports, vue
  • Runtime Modules: @nuxtjs/storybook@^8.3.0-28785015.8088d44
  • Build Modules: -

Reproduction

#794

Describe the bug

The example adds a simple directive that is applied (via a vue plugin, via a nuxt plugin) to the outer div of the CustomCompoent in the showcase example.

When working correctly it should log the element and bindings and change the background colour to red. This works on the first load but when switching pages stops working and Vue emits an error to say the directive cannot be found.

Additional context

No response

@bahulneel bahulneel added the type: bug Something isn't working label Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant