diff --git a/src/app/components/inputnumber/inputnumber.ts b/src/app/components/inputnumber/inputnumber.ts index d8fd95fbc2c..78ed29f9f65 100644 --- a/src/app/components/inputnumber/inputnumber.ts +++ b/src/app/components/inputnumber/inputnumber.ts @@ -667,7 +667,7 @@ export class InputNumber implements OnInit, AfterContentInit, OnChanges, Control parseValue(text: any) { let filteredText = text .replace(this._suffix as RegExp, '') - .replace(this._prefix as RegExp, '') + .replace(!isNaN(Number(this.prefix)) ? '' : (this.prefix), '') .trim() .replace(/\s/g, '') .replace(this._currency as RegExp, '')