Skip to content

Commit fec926d

Browse files
authored
Documentation update for hx-trigger (#3246)
1 parent f8f7466 commit fec926d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

www/content/attributes/hx-trigger.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,12 @@ but with a target filter for a child element
8686
* `all` - queue all events (issue a request for each event)
8787
* `none` - do not queue new events
8888

89-
Here is an example of a search box that searches on `keyup`, but only if the search value has changed
89+
Here is an example of a search box that searches on `input`, but only if the search value has changed
9090
and the user hasn't typed anything new for 1 second:
9191

9292
```html
9393
<input name="q"
94-
hx-get="/search" hx-trigger="keyup changed delay:1s"
94+
hx-get="/search" hx-trigger="input changed delay:1s"
9595
hx-target="#search-results"/>
9696
```
9797

0 commit comments

Comments
 (0)