Skip to content

Asynchronous Validators are broken #358

Closed
@arnKo

Description

@arnKo

I found two major breaks in the asynchronous validation. I reproduced both in this jsfiddle

First, if I type multiple characters into a text field, for each typed character a new validation error is displayed. Even if using formOptions.validateDebounceTime, which is currently not documented, multiple validation errors are displayed if I type a new character after the debounce timer and before the asynchronous validation is completed.

Second, asynchronous validation errors are not included when using a submit button with the following schema:

{
    type: 'submit',
    validateBeforeSubmit: true,
}

I can still submit the form even if asynchronous validation errors are currently displayed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions