Form target
usage
#8017
-
Does Remix support/plan to support the I want to submit a form to a new tab (in some cases). This is supported by the native html form: https://www.w3schools.com/tags/att_form_target.asp If I pass this prop to the Remix form at the moment the data is still submitted via JS and a new tab is not opened. If I use the native form I get the desired behaviour. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can use target with reloadDocument, it will be similar to using a form tag directly but with the benefit that Form correctly points the action to the current route action. |
Beta Was this translation helpful? Give feedback.
You can use target with reloadDocument, it will be similar to using a form tag directly but with the benefit that Form correctly points the action to the current route action.