Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handling several options in same page #71

Open
danyyacoub opened this issue Feb 2, 2020 · 0 comments
Open

Handling several options in same page #71

danyyacoub opened this issue Feb 2, 2020 · 0 comments

Comments

@danyyacoub
Copy link

danyyacoub commented Feb 2, 2020

It seems if I have several inputs with currencyMask and each has different options (I have 2 currencies I'm working with) It's always applying the first options to all inputs ignoring the other options.
Ex

<input currencyMask [options]="primaryCurrencyConfig"  pInputText formControlName="currency_rate_primary"/>

<input currencyMask [options]="secondaryCurrencyConfig" pInputText formControlName="currency_rate_secondary"/>

with 
primaryCurrencyConfig = {
precision: 0
unit: "LL "
}

secondaryCurrencyConfig = {
precision: 0
unit: "$ "
}

The result is always using LL ...

EDIT :
The precision works fine, it's only the unit that is not working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant