Add to docs that form data overrides hx-include inputs with the same name(s)
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 70/100
- Issue type
- Documentation
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- javascript
- Domain
- documentation
Research direction
Open the hx-include documentation linked in the issue and read the getInputValues context shown there. Document that form values override included inputs with the same names, including the resulting merging behavior, and verify that the explanation matches the existing request behavior.
Written by the indexing model from the issue text.
Description
In the getInputValues function:
// form values take precedence, overriding the regular values
values = mergeObjects(values, formValues);
It would be neat if this detail was included in the hx-include doc.
I had a group of inputs from another place in the DOM that were hx-included in a form issuing an hx-post request, and these extra inputs had the same name as some of the form's (which was intentional, I wanted a merging of the values in an array to happen) and could not figure out why they were not sent along with the request.
Thank you!
- Dominant language
- JavaScript
- Stars
- 49.5k
- Forks
- 1.7k
- Avg merge
- 4d 10h
- Merged PRs (30d)
- 36
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from bigskysoftware/htmx
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
bigskysoftware/htmx#4068 · 4 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
bigskysoftware/htmx#4011 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
bigskysoftware/htmx#2825 · 1 comment ·
-
htmx4 indicator never disappears when sending back an HX-Location to refresh only a partial page Open
Difficulty 3/5 1-2 days Newbie friendliness 72/100
bigskysoftware/htmx#4090 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 65/100
bigskysoftware/htmx#4088 · 1 comment ·
All issues in bigskysoftware/htmx
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
[Block] Latest Posts [Type] Bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
sugarlabs/musicblocks#8847 ·