-
Notifications
You must be signed in to change notification settings - Fork 52
Open
Description
Example:
<Form.Field
id="eMail"
name="eMail"
placeholder="Email"
className="form-control"
autoComplete="email"
errorClass="is-invalid"
value={model.Email}
mapFromValue={
emailValue => {
console.log("email value: ", emailValue);
return emailValue;
}
}
/>
mapFromValue does not work as expected and as written in documentation:
<Form.Field
name='name'
mapFromValue={fieldValue => fieldValue.first + ' ' + fieldValue.last}
/>
fieldValue in this example is received as syntheticEvent.
email value: SyntheticEvent {dispatchConfig: {…}, _targetInst: FiberNode, nativeEvent: InputEvent, type: "change", target: input#eMail.form-control, …}
Metadata
Metadata
Assignees
Labels
No labels