ElemeFE / ElemeFE/element-react

Form Form-Item prop 'error' is not passing input's error message

Open
#792 2 comments 3 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.8k
Forks
435
PR merge metrics
No merged PRs in 30d

Description

### Description

I am trying to use 'error' prop of Form-Item to show custom validation message for one of my form inputs but form.state.error is still empty string.

### Solution

Pass error message from 'error' prop to input state.

### Additional Information

Information about 'error' prop was found on english page (https://eleme.github.io/element-react/#/en-US/form).

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.