Skip to content

Commit d1aa891

Browse files
Documentation update for hx-get (#3251)
Update hx-get.md Clarified notes on hx-get params
1 parent a3ac341 commit d1aa891

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

www/content/attributes/hx-get.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ This example will cause the `button` to issue a `GET` to `/example` and swap the
1818
### Notes
1919

2020
* `hx-get` is not inherited
21-
* By default `hx-get` does not include any parameters. You can use the [hx-params](@/attributes/hx-params.md)
21+
* By default `hx-get` usually does not include any parameters. You can use the [hx-params](@/attributes/hx-params.md)
2222
attribute to change this
23+
* NB: If the element with the `hx-get` attribute also has a value, this will be included as a parameter unless explicitly removed
2324
* You can control the target of the swap using the [hx-target](@/attributes/hx-target.md) attribute
2425
* You can control the swap strategy by using the [hx-swap](@/attributes/hx-swap.md) attribute
2526
* You can control what event triggers the request with the [hx-trigger](@/attributes/hx-trigger.md) attribute

0 commit comments

Comments
 (0)