summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorBrandon Philips <brandon@ifup.org>2024-01-27 12:33:38 -0800
committerGitHub <noreply@github.com>2024-01-27 15:33:38 -0500
commitfb94dfa832dda3666a7819f4337be6550272d636 (patch)
tree4246cc523eb45b91c33a5a11de83c8716994bdbb
parent22f2db2254d2285309f6860c487757e47b1a350a (diff)
downloadhtmx-fb94dfa832dda3666a7819f4337be6550272d636.tar.gz
htmx-fb94dfa832dda3666a7819f4337be6550272d636.zip
www: mention hx-preserve on hx-boost (#2248)
This note would have really helped me when I was working on avoiding my maplibre canvas div from being overwritten when using hx-boost. I was initially confused by the hx-boost=false not thinking that is what I needed.
-rw-r--r--www/content/attributes/hx-boost.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/www/content/attributes/hx-boost.md b/www/content/attributes/hx-boost.md
index 4e428dd6..38dfde3b 100644
--- a/www/content/attributes/hx-boost.md
+++ b/www/content/attributes/hx-boost.md
@@ -44,3 +44,4 @@ This form will issue an ajax `POST` to the given URL and replace the body's inne
* All requests are done via AJAX, so keep that in mind when doing things like redirects
* To find out if the request results from a boosted anchor or form, look for [`HX-Boosted`](@/reference.md#request_headers) in the request header
* Selectively disable boost on child elements with `hx-boost="false"`
+* Disable the replacement of elements via boost, and their children, with [`hx-preserve="true"`](@/attributes/hx-preserve.md)