vue-excel-xlsx icon indicating copy to clipboard operation
vue-excel-xlsx copied to clipboard

Clicking <button> element reloads SPA window

Open Jedtek opened this issue 4 years ago • 2 comments

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

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.

Jedtek avatar Mar 22 '20 13:03 Jedtek

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

antoinevulcain avatar Jun 21 '20 22:06 antoinevulcain

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

Just adding this would make everything simplier. image image

antogkou avatar Aug 26 '22 14:08 antogkou