Replies: 3 comments 4 replies
-
|
As far as I am aware, Shift+click always opens in a new window, and Ctrl+click always opens in a new tab, both in Firefox and Chrome, for a normal That being assumed, I wouldn't make this configurable to something else. The expected UX is the default behaviour, adding an override via some Something I'm less aware of is how keyboard navigation is handled for a normal link, it could be convenient to add this to (or open a follow up issue to track it). |
Beta Was this translation helpful? Give feedback.
-
|
I see your points, they're valid (honestly had no idea that is behavior set by Chrome/FF). However perhaps there's still value in changing the default target? I could see someone wanting to ensure their link always opens a new tab. |
Beta Was this translation helpful? Give feedback.
-
|
PR is up: #2782 I will wait to add tests after review, or if someone else wants to write tests, that is okay too. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'd like to discuss adding a target prop to the Yew router
Link, with potential to have a ctrl+click target as well. Do we have conflicting opinions on API or can this be a straightforward implementation?<Link<Route> target="_self" ctrl_target="_blank" to={*route}/>Beta Was this translation helpful? Give feedback.
All reactions