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

Placeholder is not showing #154

Open
TLKG opened this issue Jun 29, 2022 · 1 comment
Open

Placeholder is not showing #154

TLKG opened this issue Jun 29, 2022 · 1 comment

Comments

@TLKG
Copy link

TLKG commented Jun 29, 2022

Everything works great except placeholder text is not showing up. For example:

<input currencyMask formControlName="f1" placeholder="range: 0-10"/>

image

Only way to show placeholder is to manually erase the value from field

@JanTrichter
Copy link

In case anyone else encounters this here is the solution.

You have to set nullable to true for the input to show your placeholder initially, example:

<input placeholder="Your placeholder" type="text" currencyMask [options]="{ nullable: true }">

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

2 participants