proton-ui / proton

A collection of renderless UI components for Vue.js.
https://proton-ui.com
MIT License
110 stars 11 forks source link

Button component navigation with no target #35

Closed thekanbo closed 4 years ago

thekanbo commented 4 years ago

When a p-button component is used in a project that also uses Vue router, clicking the button will cause the router to try to navigate, even if no to parameter is specified.

If the button is clicked without the to or href parameters specified, it should only emit the click event.