bigskysoftware / bigskysoftware/htmx
[htmx 4] `changed` trigger modifier doesn't seem to work in 4.0.0-beta6
- 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
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