diff --git a/src/app/components/inputnumber/inputnumber.ts b/src/app/components/inputnumber/inputnumber.ts index df35268c29b..7a3f6e3a6aa 100644 --- a/src/app/components/inputnumber/inputnumber.ts +++ b/src/app/components/inputnumber/inputnumber.ts @@ -624,7 +624,7 @@ export class InputNumber implements OnInit, AfterContentInit, OnChanges, Control } formatValue(value: any) { - if (value != null) { + if (value) { if (value === '-') { // Minus sign return value;