Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

forms with target="_blank" doesnt open new window #11931

Closed
sacrosanctic opened this issue Mar 4, 2024 · 3 comments · Fixed by #11936
Closed

forms with target="_blank" doesnt open new window #11931

sacrosanctic opened this issue Mar 4, 2024 · 3 comments · Fixed by #11936
Labels
bug Something isn't working forms Stuff relating to forms and form actions

Comments

@sacrosanctic
Copy link
Contributor

Describe the bug

<form target="_blank" action="/about">
  <button type="submit">navigate with a form</button>
</form>

Expected

open /about in a new tab

Actual

open /about in the same tab

Reproduction

repro

live demo

Logs

No response

System Info

.

Severity

annoyance

Additional Information

No response

@ciscoheat
Copy link

Just want to add that it doesn't work with use:enhance added to the form as well. Tested with _top in an iframe, didn't work either.

@sacrosanctic
Copy link
Contributor Author

Just want to add that it doesn't work with use:enhance added to the form as well. Tested with _top in an iframe, didn't work either.

Use:enhance with POST method?

@ciscoheat
Copy link

ciscoheat commented Mar 21, 2024

Yes, use:enhance doesn't work without method="POST".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working forms Stuff relating to forms and form actions
Projects
None yet
4 participants