From 0ce391e924ed90dba9542cdf90f36b81edf2c529 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Korzeniewski?= Date: Sun, 13 Oct 2024 10:08:10 +0200 Subject: [PATCH] Use correct extended CSS selector name in hx-trigger notes section (#2964) --- www/content/attributes/hx-trigger.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/content/attributes/hx-trigger.md b/www/content/attributes/hx-trigger.md index 4475e96a..3512a08c 100644 --- a/www/content/attributes/hx-trigger.md +++ b/www/content/attributes/hx-trigger.md @@ -154,4 +154,4 @@ The AJAX request can be triggered via JavaScript [`htmx.trigger()`](@/api.md#tri * `hx-trigger` is not inherited * `hx-trigger` can be used without an AJAX request, in which case it will only fire the `htmx:trigger` event -* In order to pass a CSS selector that contains whitespace (e.g. `form input`) to the `from`- or `target`-modifier, surround the selector in parentheses or curly brackets (e.g. `from:(form input)` or `from:nearest (form input)`) +* In order to pass a CSS selector that contains whitespace (e.g. `form input`) to the `from`- or `target`-modifier, surround the selector in parentheses or curly brackets (e.g. `from:(form input)` or `from:closest (form input)`)