bigskysoftware / bigskysoftware/htmx

v4: Multi-Target not working with hx-target

Open
#3,857 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

Multi-Target not working with hx-target as suggested by the docs:
Contradicts https://four.htmx.org/docs#multiple-targets

Being aware of hx-partials and hx-swap-oob, aka the correct way - still the docs suggests I can swap a response to multiple targets, like below. I get no errors for the button clicks.

`this.version = '4.0.0-beta4'`
```

Get Response

Get Response

Get Response

Request!

Request!

```

Contributor guide

Open the contributing guide

Research direction

Start by reading the multiple-targets documentation and reproducing the provided example on htmx v4.0.0-beta4. Confirm the behavior for #r1, #r2, and .response-class; done means either all matching targets update as documented or the documentation accurately describes the supported behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.