Skip to content

Prevent validation when input is disabled #91

Closed
@FDVS

Description

@FDVS

I believe this to be a bug, as a disabled input gets validated.

I have a few inputs that are populated with data persisted from elsewhere, so those inputs are visible, but locked if they are already filled. However they get validated onSubmit even with the disabled attribute.

I'm not sure if there's any circumstance where that would be desired since the user won't be able to edit if it has an error, but I will need to keep them enabled if there isn't any persisted data and there I would need the validation to work.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions