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.

when using "use:link" middle click will not work

See original GitHub issue

When using the “use:link” option and i want to open the link in a new tap (middle click in the mouse) it will open as /book/321 instead of /#/book/321.

<a href="/book/321" use:link>The Little Prince</a>

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
ItalyPaleAlecommented, Oct 14, 2019

@TorstenDittmann thanks for the PR.

I’ve been thinking about this, and I’m wondering if the best way would actually be to change the handler so it actually modifies the href element rather than waiting for a click? Otherwise, we’d have to support a lot of cases, such as middle button click, right-click and then “open in new tab”, etc…

Thoughts?

0reactions
avimarcommented, May 19, 2022

I think this is the same issue?

<a href="/line/{line.id}" use:link>

When I control or shift click, to open in a new tab or new window, it just opens it in the same tab.

If I use <a href="#/line/{line.id}"> then it seems the router works properly and there’s no extra page loads from a full refresh.

Is this a bug to be fixed?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How To Fix Mouse Middle Click is Not Working on ... - YouTube
In this video I will show you guys how to fix the middle mouse button is not working in your windows 10 pc...
Read more >
Middle-clicking to open link in a new tab in Firefox 15 does not ...
Go to Options > Advanced > General and check Use autoscrolling . If it doesn't fix the problem, create a new Firefox profile...
Read more >
Click with middle button can't load onclick function on Firefox
I'm already search a lot but still can't find the right answer. I wonder why middle click (scroll button) can't load onclick function...
Read more >
I hear that the scroll wheel is a bit tough to click down. Was ...
The real answer is that there is not enough friction on the scroll wheel itself. I have never had an problem with accidentally...
Read more >
Why and when did Firefix middle mouse button scroll get ...
Why is Mozilla constantly changing things or deleting things that are useful and replacing them with things that are useless? I can no...
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