bigskysoftware / bigskysoftware/htmx
Nested OOB swap is performed even though it is off
Open
- Dominant language
- JavaScript
- Stars
- 49.4k
- Forks
- 1.7k
- Avg merge
- 3d 22h
- Merged PRs (30d)
- 30
Description
Hey I have a component
```
templ SomeComponent(){
......
}
```
This component I sometimes send by itself to make oob swap and sometimes it is nested inside another component. I have `window.htmx.config.allowNestedOobSwaps = false;` but when I try to target `body` and `SomeComponent` is nested, it just does not appear on the page. I think it tries to do an OOB swap.
I am puting HX-Retarget and HX-Reswap inside the response header. May this be maybe a bug related to the retarget and reswap?
Contributor guide
Assessment
This issue has not been assessed yet.