[Bug Report] v-btn default target
See original GitHub issueVersions and Environment
Vuetify: 1.2.2 Vue: 2.5.2 Browsers: Chrome, Safari OS: Windows 10, Windows, Android, iOS
Steps to reproduce
Add v-btn element with href : <v-btn class="primary-btn" :href="/" >Button</v-btn>
Expected Behavior If target attribute not specified, default attribute should be “_self”, “undefined” instead.
Actual Behavior If target attribute not specified, link will be opened randomly (new window or same window)
Note In vuetify source code “src/components/VBtn/VBtn.ts”, missing props for target attribute such as:
props: {
...
target: {
type: String,
default: '_self'
},
...
}
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Target Debit Card Agreement & Error Resolution Notice
Even if you are not in default, we reserve the right to terminate your Card privileges at any time. All Cards we issue...
Read more >A way to change the default target project for merge requests ...
A way to change the default target project for merge requests in the fork project. Problem to solve. After a fork is created,...
Read more >Health checks for your target groups - Elastic Load Balancing
The default is 5 seconds if the target type is instance or ip and 30 seconds if the target type is lambda ....
Read more >Form submission to a named target opens in new window if ...
Issue 230067: Form submission to a named target opens in new window if existing page in target contains a global JavaScript variable called...
Read more >Troubleshoot the Analytics and Target integration (A4T)
If the report suites are not in the default reporting source, the reports suites do not display. If you still don't see the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
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 had the same issue. I think that it is better that default is set as _self.
Why?
No it won’t, it’ll be opened like every other link based on the browser’s settings. Put
<base target="_self" />
in your <head> if you really want to override that.