assisrafael/angular-input-masks

Pasting whole number results in wrong formatting when decimals are used.

Open

#119 创建于 2015年9月10日

在 GitHub 查看
 (3 评论) (0 反应) (0 负责人)JavaScript (334 fork)batch import
help wantedneeds: more info

仓库指标

Star
 (970 star)
PR 合并指标
 (30 天内没有已合并 PR)

描述

We are using ui-money-mask directive with 2 decimals.

When the user pastes whole numbers like 123456 in the text box, the last 2 digits are taken to be decimals by the directive. So the value in the text box becomes $ 1234.56 which is not what the user expects. This is clearly a defect for us but I am not sure if you would consider this as a general defect or as designed?

贡献者指南