eclipsesource / eclipsesource/jsonforms

Number field allows to enter 'e'

Open
#1,568 0 comments 0 reactions 0 assignees View on GitHub
material react
Dominant language
TypeScript
Stars
2.7k
Forks
424
Avg merge
17d 8h
Merged PRs (30d)
1

Description

**Describe the bug**
When entering a value into a number field you can only enter numbers and the letter `e` probably because of possible support for a scientific notation.

**To Reproduce**
See gif:
![jsonformsNumber](https://user-images.githubusercontent.com/1176277/77962666-4e490000-72dc-11ea-8eb9-b0db39c16640.gif)

**Expected behavior**
I would expect the number field to either not allow to enter `e` at all or convert the entered numbers.

**Browser (please complete the following information):**
- Browser [e.g. chrome, safari] chrome
- Version [e.g. 22] 80.0.3987.149

**Used Setup (please complete the following information):**
- Framework: [e.g. react, angular] react, (didn't test angular)
- RendererSet: [e.g. material, vanilla] material and vanilla

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.