bigskysoftware / bigskysoftware/htmx

hx-trigger with auxclick event is not working as expected

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

In most Linux systems (maybe in MacOS too), you can copy something and paste it with the middle click ([auxclick](https://developer.mozilla.org/en-US/docs/Web/API/Element/auxclick_event)).

So in the following example, when you have copied something and try to paste it to the input with the middle click, it fires the http request and it sends an empty value.

```html

```

Contributor guide

Open the contributing guide

Research direction

Reproduce the supplied form example in a Linux browser: copy text, then middle-click the #otp input and observe the request value. Start by tracing how hx-trigger handles auxclick from that input; done means the request includes the pasted value rather than an empty value.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.