Skip to content

Commit b34cb89

Browse files
authored
Add htmx.config.reportValidityOfForms to config section (#3657)
1 parent de8d2c3 commit b34cb89

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

www/content/docs.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1761,6 +1761,7 @@ listed below:
17611761
| `htmx.config.responseHandling` | the default [Response Handling](@/docs.md#response-handling) behavior for response status codes can be configured here to either swap or error |
17621762
| `htmx.config.allowNestedOobSwaps` | defaults to `true`, whether to process OOB swaps on elements that are nested within the main response element. See [Nested OOB Swaps](@/attributes/hx-swap-oob.md#nested-oob-swaps). |
17631763
| `htmx.config.historyRestoreAsHxRequest`| defaults to `true`, Whether to treat history cache miss full page reload requests as a "HX-Request" by returning this response header. This should always be disabled when using HX-Request header to optionally return partial responses |
1764+
| `htmx.config.reportValidityOfForms` | defaults to `false`, Whether to report input validation errors to the end user and update focus to the first input that fails validation. This should always be enabled as this matches default browser form submit behaviour |
17641765
</div>
17651766

17661767
You can set them directly in javascript, or you can use a `meta` tag:

0 commit comments

Comments
 (0)