diff options
author | Oliver Djursing <Oliverdjursing@gmail.com> | 2023-07-20 20:29:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-20 14:29:13 -0400 |
commit | c59fe799e8a6f244d94b168ea67d75c42764c606 (patch) | |
tree | 28d55ac2d020618a6b4970b490a9c0c6b9597a25 /www/content/attributes | |
parent | 131c025143ad19940da9ff49037d8412da5e6b8e (diff) | |
download | htmx-c59fe799e8a6f244d94b168ea67d75c42764c606.tar.gz htmx-c59fe799e8a6f244d94b168ea67d75c42764c606.zip |
Update hx-trigger throttle documentation (#1609)
Diffstat (limited to 'www/content/attributes')
-rw-r--r-- | www/content/attributes/hx-trigger.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/www/content/attributes/hx-trigger.md b/www/content/attributes/hx-trigger.md index d87379aa..b8559416 100644 --- a/www/content/attributes/hx-trigger.md +++ b/www/content/attributes/hx-trigger.md @@ -52,8 +52,8 @@ Standard events can also have modifiers that change how they behave. The modifi * `changed` - the event will only change if the value of the element has changed. Please pay attention `change` is the name of the event and `changed` is the name of the modifier. * `delay:<timing declaration>` - a delay will occur before an event triggers a request. If the event is seen again it will reset the delay. -* `throttle:<timing declaration>` - a throttle will occur before an event triggers a request. If the event -is seen again before the delay completes it is ignored, the element will trigger at the end of the delay. +* `throttle:<timing declaration>` - a throttle will occur after an event triggers a request. If the event +is seen again before the delay completes, it is ignored, the element will trigger at the end of the delay. * `from:<Extended CSS selector>` - allows the event that triggers a request to come from another element in the document (e.g. listening to a key event on the body, to support hot keys) * The extended CSS selector here allows for the following non-standard CSS values: * `document` - listen for events on the document |