bigskysoftware / bigskysoftware/htmx

[htmx 4] `changed` trigger modifier doesn't seem to work in 4.0.0-beta6

Open
#4,033 1 comment 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

The `changed` modifier appears to block the trigger event from being detected.

Example:

```django



{...form fields}



```

When the `changed` modifier is omitted, the POST request is correctly sent after a 250ms delay on keydown. If `changed` is included, then the POST never fires.

Expected behavior: when a keydown event is detected, only fire the POST if the field has changed

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue with the provided form and `hx-trigger="keydown changed delay:250ms"` example in htmx 4.0.0-beta6. Start at the trigger handling for the `changed` modifier and compare it with the working `keydown delay:250ms` behavior. Done means the delayed POST fires only when the field value has changed.

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
Active
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.