Skip to content

Add isBlurred state check #939

@Pascalmh

Description

@Pascalmh

Add a isBlurred state check so a field can be validated onChange after it has been blurred once.

Usage example once it is implemented:

validators={{
	onChange: ({ value, fieldApi }) => {
		if (fieldApi.form.getFieldMeta("firstName")?.isBlurred) {
			// validation code goes here
		}

		return undefined;
	},
}}

Idea came up in Discord: https://discord.com/channels/719702312431386674/1263506167901065246

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