bigskysoftware / bigskysoftware/htmx

cannot access event in `hx-headers` js

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

When using `hx-vals` and `hx-vars` you can reference event as shown in the docs for [hx-vals](https://htmx.org/attributes/hx-vals/). That is not the case with `hx-headers`

The following example don't work because `event` is undefined

```html


Get Some HTML, Including a custom header indicating which event triggered the request

```

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.