Home > Blockchain >  Primeng pinput number placeholder doesn't show
Primeng pinput number placeholder doesn't show

Time:01-04

This is what I tried. What shows is 0.00 instead of the placeholder, my placeholder is a text like "enter exchange rate" Any solution for that?

<span >
            <p-inputNumber [max]="9" mode="decimal" name="exchangeRate" formControlName="exchangeRate"
                [minFractionDigits]="2" [maxFractionDigits]="2" placeholder="exchangeRate"></p-inputNumber>
        </span>

CodePudding user response:

If you are initializing your formControl exchangeRate with null instead of 0, you can show your placeholder.

  • Related