question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

b-button href inhibits @click

See original GitHub issue

The DOM behavior is to always execute onClick and then possibly follow href (if onClick didn’t return false). Using a <b-button href="#" @click="foo">, foo() is never executed. It is if href is removed. Documentation is sparse about this and didn’t let know how it’s expected to behave.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
tmorehousecommented, Oct 3, 2017

I would suggest style="cursor: pointer"

Bootstrap V4.beta has removed all “hand cursors” from anything that isn’t a link, to match native browser functionality

Buttons are best suited (specifically for W3C ARIA compliance) when navigation isn’t involved.

0reactions
emanuelmutschlechnercommented, May 9, 2018
Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I create an HTML button that acts like a link?
Just a note, for me "button acts like link" means, that I can do right-click and decide whether to open in new tab/window,...
Read more >
How to process web page to click on the right button? - Studio
Drag-drop the Click activity into design screen · Click on “Indicate on screen” text of that click activity · Click on any “Edit”...
Read more >
How to Add an HTML Button that Acts Like a Link - W3docs
There are several ways of creating an HTML button, that acts like a link (i.e., clicking on it the user is redirected to...
Read more >
Wiki - Wikipedia
A wiki is an online hypertext publication collaboratively edited and managed by its own ... Some wikis have an edit button or link...
Read more >
MD Anderson Cancer Center: Cancer Treatment & Cancer ...
Find the latest information about cancer treatments, research and prevention as well as how to become a patient at MD Anderson Cancer Center....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found