Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Error names without period are not detected in hasError #113

Open
Assignees
chainlist
Labels
bugSomething isn't working
@pboguslawski

Description

@pboguslawski

Describe the bug
According to manual one can create custom validator with error names without period but such errors are not detected withhasError, i.e.$myForm.hasError("my_error") or$myForm.hasError("minLength") is always false even if validator returnsvalid =false.

No such problem when period is used in error name i.e.$myForm.hasError("my.error").

Checked in svelte-forms 2.3.1.

Expected behavior
hasError or manual should be fixed. Standard error names likeminLength should work or be adjusted to allow to be detected usinghasError.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp