Skip to content

Required issue using async onChangeValidator in Wizard #6048

@langz

Description

@langz

🐛 Bug Report

Handling required fields in a wizard is not behaving consistently when used together with other async onChangeValidator's. How I see it, this is not a problem if there's only one async onChangeValidator that's required in a form/wizard, so hopefully as of today only a few apps has multiple required fields that's using onChangeValidator or setFieldState with "pending".

Can be demoed here: https://eufemia.dnb.no/uilib/extensions/forms/Wizard/Container/#async-wizard

In the first video, I get the correct required error message when pressing the next button after not entering any data into either fields. So this works as expected:

Screen.Recording.2025-12-05.at.09.27.11.mov

In the second video, when I enter any data into the non-required field with async validator, then I do not get the required error message for the 1st field. It's like if there's any active async validators it ignores/forget about the required field:

Screen.Recording.2025-12-05.at.09.28.58.mov

I think I would expect to get the required error message, and not been able to proceed with the form, or? 🤔

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions