Skip to content
#

form

Here are 3,162 public repositories matching this topic...

formik
krichter722
krichter722 commented Apr 19, 2020

🚀 Feature request

Current Behavior

The type ErrorMessage doesn't have an id property.

Desired Behavior

It'd be nice id?: string would be added to the type ErrorMessage and set on the outermost component that serves as error message.

Suggested Solution

Add id={this.props.id} to the outer component in ErrorMessage.

Who does this impact? Who is this

ealush
ealush commented Mar 6, 2022

Add singular form of the following:

getErrors() -> getError()
getWarnings() -> getWarning()

The idea is to return the first error/warning of a field, instead of an array.
Unlike getErrors/getWarnings that can either take 0 or 1 arguments, getError/getWarning must receive a field name.

Function signature:

function getError(fieldName: string): string;
function getWarning(fieldNam
good first issue
ksidibe
ksidibe commented Dec 4, 2017

The current way (t.tabId=""+t.title.replace(/ /g,"")+e) of generating the id attribute makes it unusable for cases when you need a clear control over the id of the "div"s.
For example, before allowing the user to move forward or backward, I need to call a validation plugin with one or more divs as containers which are validated. If the given divs are valid then the forward/backward movement is a

good first issue

Improve this page

Add a description, image, and links to the form topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the form topic, visit your repo's landing page and select "manage topics."

Learn more