assisrafael / assisrafael/angular-input-masks

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

Open
#119 3 comments 0 reactions 0 assignees View on GitHub
help wanted needs: more info
Dominant language
JavaScript
Stars
955
Forks
329
PR merge metrics
No merged PRs in 30d

Description

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

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/26588984-pasting-whole-number-results-in-wrong-formatting-when-decimals-are-used?utm_campaign=plugin&utm_content=tracker%2F1022469&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F1022469&utm_medium=issues&utm_source=github).

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.