From fb94dfa832dda3666a7819f4337be6550272d636 Mon Sep 17 00:00:00 2001 From: Brandon Philips Date: Sat, 27 Jan 2024 12:33:38 -0800 Subject: [PATCH] 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. --- www/content/attributes/hx-boost.md | 1 + 1 file changed, 1 insertion(+) 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)