assisrafael/angular-input-masks

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

Aberta

#119 aberto em 10 de set. de 2015

 (3 comentários) (0 reação) (0 responsável)JavaScript (330 forks)batch import
help wantedneeds: more info

Métricas do repositório

Stars
 (955 estrelas)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 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?

Guia do colaborador