ElemeFE / ElemeFE/element

[Bug Report] Decimal separator format in el-input-number

Open
#9,961 20 comments 23 reactions 1 assignee Claimed by @ziyoung View on GitHub
component: input-number status: discussion type: feature request
Dominant language
Vue
Stars
54k
Forks
14.4k
PR merge metrics
No merged PRs in 30d

Description

### Element UI version
2.2.0

### OS/Browsers version
Chrome Version 64.0.3282.186

### Vue version
2.5.13

### Reproduction Link
[https://jsfiddle.net/mmx38qxw/393/](https://jsfiddle.net/mmx38qxw/393/)

### Steps to reproduce
Introduce "2,23" with a comma instead of a dot.

### What is Expected?
Format the number with decimals correctly either using separator "," or "." for internationalization purposes. Or add a new prop for stablishing the decimal separator character.

### What is actually happening?
The new number is not valid and dissapears if the decimal separator is not ",".

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.