Skip to content

Is there a way to continue to support Ctrl + Click to open a link in a new tab? #209

@bretto36

Description

@bretto36

Environment Details

  • PHP Version: 8.4
  • Laravel Version: 12.59
  • React or Vue Version: Vue
  • Inertia.js Version: 3.0.1
  • Inertia Modal Version: 3.0.1

Feature Request

What feature would you like to see?

When i use ModalLink component to link to a Modal it doesn't support Ctrl + Click to open in a new tab, it just loads it like a normal click. Right clicking and clicking Open in New Tab DOES allow me to open in a new tab though

Why is it needed?

I would like the links to support standard browser behaivour

Alternatives Considered

I can't really think of a better way to do it on my side, i feel like it should be supported in the package. I will check the standard <Link component and see how it does it


Important Notes:

  • ❌ Do not post screenshots for code-related issues—use code blocks instead.
  • 📹 Only post videos when necessary for styling/visual bugs.
  • ✅ Ensure your issue is reproducible before submitting.
  • 🔍 Search existing issues before opening a new one.
  • 🛠️ If your issue involves a specific use case or is hard to reproduce, consider creating a minimal GitHub repository with a fresh Laravel app to demonstrate the problem.

Metadata

Metadata

Assignees

No one assigned

    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