adopted-ember-addons / adopted-ember-addons/ember-inputmask
one-way-input-mask with custom mask does not work after upgrade
- Langage dominant
- JavaScript
- Étoiles
- 67
- Forks
- 43
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
Hi,
following setup worked properly with ember-inputmask versions < 0.7
```javascript
//mask-definition
import Inputmask from 'inputmask';
export function initialize(/* application */) {
Inputmask.extendAliases({
euro: {
suffix: " €",
groupSeparator: ".",
radixPoint: ",",
alias: "numeric",
placeholder: "0",
autoGroup: !0,
digits: 2,
digitsOptional: !1,
clearMaskOnLostFocus: !1,
autoUnmask: true,
unmaskAsNumber: true
}
});
}
export default {
initialize
};
```
```javascript
{{one-way-input-mask value=12.58 mask="euro"}}
```

Since ember-inputmask > 0.7, the same output results in following output:

The given value (12.58) is multiplicated by 100. Why?
Can you help me?
thank you
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Start by reproducing the snippet from the issue in ember-inputmask versions before and after 0.7, using a custom Inputmask alias named euro and {{one-way-input-mask value=12.58 mask="euro"}}. Then compare the upgrade behavior around custom aliases and numeric unmasking. Done means the masked value no longer appears multiplied by 100 for this case.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- javascript
- Domaine
- frontend
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 28/100