Skip to content

Commit

Permalink
fix: #14327, Inputnumber: Inputnumber#currency mode not allowing to r…
Browse files Browse the repository at this point in the history
…emove minus sign for Dollar and INR fields.
  • Loading branch information
akshayantony55 committed Dec 11, 2023
1 parent cd401fa commit 1a84546
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/components/inputnumber/inputnumber.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 1a84546

Please sign in to comment.