mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-10-02 23:35:13 +00:00
Fixed typo on hx-swap page (#991)
This commit is contained in:
parent
29c12fe0cb
commit
686b1a76c8
@ -112,7 +112,7 @@ htmx preserves focus between requests for inputs that have a defined id attribut
|
|||||||
hx-swap="outerHTML focus-scroll:true"/>
|
hx-swap="outerHTML focus-scroll:true"/>
|
||||||
```
|
```
|
||||||
|
|
||||||
Alternatively, if you want the page to automatically scroll to the focused element after each request you can change the htmx global configuration value `htxm.config.defaultFocusScroll` to true. Then disable it for specific requests using `focus-scroll:false`.
|
Alternatively, if you want the page to automatically scroll to the focused element after each request you can change the htmx global configuration value `htmx.config.defaultFocusScroll` to true. Then disable it for specific requests using `focus-scroll:false`.
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<input id="name" hx-get="/validation"
|
<input id="name" hx-get="/validation"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user