From 1a845468c363b15bf8fae8d1804c54a77c9c346d Mon Sep 17 00:00:00 2001 From: akshayantony55 Date: Tue, 12 Dec 2023 00:32:21 +0530 Subject: [PATCH] fix: #14327, Inputnumber: Inputnumber#currency mode not allowing to remove minus sign for Dollar and INR fields. --- src/app/components/inputnumber/inputnumber.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/components/inputnumber/inputnumber.ts b/src/app/components/inputnumber/inputnumber.ts index 315acc83bc0..59ccf1cbc47 100644 --- a/src/app/components/inputnumber/inputnumber.ts +++ b/src/app/components/inputnumber/inputnumber.ts @@ -873,6 +873,8 @@ export class InputNumber implements OnInit, AfterContentInit, OnChanges, Control } else { newValueStr = inputValue.slice(0, selectionStart - 1) + inputValue.slice(selectionStart); } + } else if (this.mode === 'currency' && deleteChar.search(this._currency) != -1) { + newValueStr = inputValue.slice(1); } this.updateValue(event, newValueStr, null, 'delete-single');