bigskysoftware / bigskysoftware/htmx

hx-include inside form

Open
#3,313 4 comments 0 reactions 0 assignees View on GitHub
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

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.