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

Field name starting with number crashes react-final-form in validate or onChange event

Open
#834 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?

If the field name starts with a number, react-final-form crashes on validate step or on change

### What is the expected behavior?

Field with name "02" or "03" expected to work in the same way as "a02" or "b03"

### Sandbox Link

### What's your environment?

react-final-form 6.4.0, webpack 4.42.1

### Other information

![image](https://user-images.githubusercontent.com/75169/87801617-a8a0a900-c858-11ea-9614-c43b294ddf0e.png)

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.