bigskysoftware / bigskysoftware/htmx

hx-params is ignored if included inside a form element

Open
#3,199 8 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
49.4k
Forks
1.7k
Avg merge
3d 22h
Merged PRs (30d)
30

Description

By the default, if the HTMX request is sent from a form element, all fields are sent and hx-params is ignored.

Maybe the documentation should be updated to mention this behaviour or change the behaviour to allow filtering parameters even if the request is sent from a form element.

```

```

In the previous example, all the fields will be sent ignoring hx-params. I would have thought that only 'field1' would be sent.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.