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.

[Bug Report] v-btn default target

See original GitHub issue

Versions 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.

image

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:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
vukan71commented, Sep 11, 2018

I had the same issue. I think that it is better that default is set as _self.

1reaction
KaelWDcommented, Sep 20, 2018

Why?

link will be opened randomly

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

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