final-form / final-form/react-final-form

Q: should readonly fields be validated on blur?

Open
#1,011 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
7.4k
Forks
497
PR merge metrics
No merged PRs in 30d

Description

### Are you submitting a **bug report** or a **feature request**?

*bug report**

### What is the current behavior?

field has `readonly` atribute set so user cannot change its value but if the prefilled value is incorrect, validation triggered on e.g. `blur` event raises error

### What is the expected behavior?

validation should not be triggered on `readonly` inputs for `blur` event

### Sandbox Link

### What's your environment?

RFF v6.59, FF 4.20.7

### Other information

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.