halo/console/src/formkit/plugins
Takagi 9b8b4294e5
pref: scroll to the error location when form submission validation fails (#4358)
#### What type of PR is this?

/kind improvement
/area console

#### What this PR does / why we need it:

为 `Formkit` 添加自动滚动至错误的插件,当表单校验不通过时,如果错误处被隐藏,则会滚动至错误处。

#### Which issue(s) this PR fixes:

Fixes #4317 

#### Special notes for your reviewer:

找到表单中的必选项或其他校验项,尝试填写一个错误的选项。之后滚动表单直到隐藏当前项,此时点击提交,查看是否能够自动滚动至对应的错误项。

#### Does this PR introduce a user-facing change?
```release-note
当表单填写错误时,将会自动滚动至错误项。
```
2023-08-03 07:51:27 +00:00
..
auto-scroll-to-errors.ts pref: scroll to the error location when form submission validation fails (#4358) 2023-08-03 07:51:27 +00:00
password-prevent-autocomplete.ts perf: disable browser's autocomplete feature for password input field (#3550) 2023-03-23 13:42:35 +00:00
radio-alt.ts Move root to console 2023-03-02 15:49:22 +08:00
required-asterisk.ts chore: bump formkit version to 0.17.3 (#4103) 2023-06-21 08:28:13 +00:00
stop-implicit-submission.ts chore: bump formkit version to 0.17.3 (#4103) 2023-06-21 08:28:13 +00:00