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

Toasts won't display when navigating with Turbolinks #371

Open
Arns opened this issue Mar 23, 2023 · 0 comments
Open

Toasts won't display when navigating with Turbolinks #371

Arns opened this issue Mar 23, 2023 · 0 comments
Labels
Type: Bug Something isn't working

Comments

@Arns
Copy link

Arns commented Mar 23, 2023

Versions

  • 1.0

Describe the bug

Using vue.js 2 with vue-toastification on a multi-page app that uses turbolinks. Upon refreshing the page, everything works fine and the toast shows. When I navigate to a page and come back to the page with a toast, nothing displays. It has to be something with how turbolinks replaces the elements.

I do have my Vue.use(Toast) in a turbolinks:load event that fires every time the page changes, but this doesn't fix the problem.

Expected behavior

Toasts should still appear when navigating with Turbolinks.

Steps to reproduce

Steps:

  1. Install normally with Vue.js 2 app that initializes on turbolinks:load
  2. Use toast anywhere
  3. navigate anywhere with turbolinks then navigate to the page with the toast
  4. Toast will not display (even though it did display on first page load)

Your Environment

  • Device: Laptop Dell XPS
  • OS: Windows 11
  • Browser Chrome
  • Version 111
@Arns Arns added the Type: Bug Something isn't working label Mar 23, 2023
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