Skip to content

ctrl+click does not open new tab #23

Closed
@rmorshea

Description

@rmorshea

Describe the bug
ctrl+click does not open links in a new tab.

To Reproduce

from reactpy import component, html, run, use_location
from reactpy_router import link, route, simple

@component
def root():
    use_location()
    return simple.router(
        route(
            "/",
            html.div(
                html.h1("Home Page 🏠"),
                link(html.button("About"), to="/about"),
            ),
        ),
        route("/about", html.h1("About Page 📖")),
    )

Then ctrl+click the link and note that the current page navigates to the link.

Expected behavior
The link should open in a new tab.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions