bigskysoftware / bigskysoftware/htmx
hx-include inside form
- Dominant language
- JavaScript
- Stars
- 49.4k
- Forks
- 1.7k
- Avg merge
- 3d 22h
- Merged PRs (30d)
- 30
Description
Not sure if this is a bug or a feature but I feel `hx-include` behave inconsistent when inside form or not
In next example, it do what I expect is doing
1. When Submit Outer is triggered, all input fields are sent
2. When Submit Inner is triggered, only field-xx is sent
```html
Submit Inner
Submit Outer
```
But not the same behavior for next example (outer div is replaced with form) where in both cases all fields are sent
```html
Submit Inner
Submit Outer
```
Contributor guide
Assessment
This issue has not been assessed yet.