b-button href inhibits @click
See original GitHub issueThe 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:
- Created 6 years ago
- Reactions:1
- Comments:6 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
Check this link: buttons shouldn’t have a hand cursor