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.
This commit is contained in:
Brandon Philips 2024-01-27 12:33:38 -08:00 committed by GitHub
parent 22f2db2254
commit fb94dfa832
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)