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

Clicking <button> element reloads SPA window #4

Open
Jedtek opened this issue Mar 22, 2020 · 2 comments
Open

Clicking <button> element reloads SPA window #4

Jedtek opened this issue Mar 22, 2020 · 2 comments

Comments

@Jedtek
Copy link

Jedtek commented Mar 22, 2020

Hello,

I have been using your plugin with NuxtJS framework (Basically express + Vue + Webpack etc) and I got it working as a Nuxt plugin with no server side rendering and it works well apart from this is an SPA style application and the click event on your tag inside your reloads the page.

I think the best course of action is adding the click event to have stop or prevent event modifier on it.

I can sort it out and do a PR if you want but thought I would put it as an issue first and see what was said, maybe I am missing something?

Thanks,
Jed.

@antoinevulcain
Copy link

@Jedtek could you detail how you made it work with nuxtJS?

@antogkou
Copy link

Having the same issue - preventDefault would be nice to be an option!

Just adding this would make everything simplier.
image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants