nbfontana / ngx-currency

Currency mask module for Angular 📦
https://nbfontana.github.io/ngx-currency
MIT License
237 stars 122 forks source link

Dot only supported decimal separator key in natural input mode #182

Closed win36 closed 1 year ago

win36 commented 1 year ago

Reproduction steps

Configure an input like this:

{
    align: 'left',
    allowNegative: false,
    allowZero: false,
    decimal: ',',  // comma as decimal separator
    precision: 2,  // two decimals
    prefix: '',
    suffix: ' %',
    nullable: true,
    min: 0,
    max: 99,
    inputMode: CurrencyMaskInputMode.NATURAL,  // natural mode
    thousands: '.'
  };

Expected Behavior

It should be possible to enter decimals using the comma key.

Actual Behavior

The dot key has to be used to enter decimals.

win36 commented 1 year ago

Turned out to be my own error...