Skip to content

Commit a6408e5

Browse files
precizSteffenDE
authored andcommitted
Fix docs: <.link> component does not generate a form for non-get requests (#4179)
1 parent 068692e commit a6408e5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/phoenix_component.ex

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3063,8 +3063,10 @@ defmodule Phoenix.Component do
30633063
and therefore only works with the `href={...}` attribute. It has no effect on `patch`
30643064
and `navigate` instructions.
30653065
3066-
In case the method is not `get`, the link is generated inside the form which sets the proper
3067-
information. In order to submit the form, JavaScript must be enabled in the browser.
3066+
In case the method is not `get`, the link is generated with the `data-method`
3067+
attribute that is intercepted by the `phoenix_html` JavaScript library to
3068+
trigger a form submission. In order to submit the form, JavaScript must
3069+
be enabled in the browser.
30683070
"""
30693071
)
30703072

0 commit comments

Comments
 (0)