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

Allow currencyMask to be used as input instead of options #194

Merged
merged 1 commit into from
Jun 4, 2024

Conversation

ArtemDintecom
Copy link
Contributor

This change allows options to be passed through the currencyMask input.
Now, instead of:

<input
  currencyMask
  [options]="{ prefix: 'R$ ' }"
/>

you can do this:

<input
  [currencyMask]="{ prefix: 'R$ ' }"
/>

For backward compatibility, options is marked deprecated, but not removed.

Also, the directive selector has been made more specific, because InputManager cannot work with anything other than HTMLInputElement.

@nbfontana nbfontana merged commit d41c0a2 into nbfontana:master Jun 4, 2024
@ArtemDintecom ArtemDintecom deleted the currency-mask-input branch June 4, 2024 18:26
@nbfontana nbfontana mentioned this pull request Jun 4, 2024
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

Successfully merging this pull request may close these issues.

2 participants