Fix typo for the hx-sync documentation (#1255)

thank you!
This commit is contained in:
Niels Dequeker 2023-02-16 17:18:21 +01:00 committed by GitHub
parent 6101b011ca
commit 91573d1c45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,7 +51,7 @@ If you'd rather prioritize the validation request over the submit request, you c
</form>
```
When dealing with forms that contain many inputs, you can prioritize the submit request over all input validation requests using the hx-sync `replace` stragegy on the form tag. This will cancel any in-flight validation requests and issue only the `hx-post="/store"` request. If you'd rather abort the submit request and prioritize any existing validation requests you can use the `hx-sync="this:abort"` strategy on the form tag
When dealing with forms that contain many inputs, you can prioritize the submit request over all input validation requests using the hx-sync `replace` strategy on the form tag. This will cancel any in-flight validation requests and issue only the `hx-post="/store"` request. If you'd rather abort the submit request and prioritize any existing validation requests you can use the `hx-sync="this:abort"` strategy on the form tag.
```html
<form hx-post="/store" hx-sync="this:replace">