[Vuejs]-How to open a rails href link from a Vue JS Method?

0👍

Your b-button and a anchor elements appear to be competing for the click.

If you’ve determined that the user needs javascript to use the page, I’d say just get rid of the anchor element.

You can also try using modifiers, and even css to prevent click action from going to the child elements if you absolutely need to have the anchor there.

ie:

<b-button @click.stop.capture="handleSubmit"><a href="/card/new" data-remote='true'>Payment</a></b-button>

Leave a comment