Skip to content

Commit

Permalink
Merge pull request #14328 from qburst/master
Browse files Browse the repository at this point in the history
fix: #14327, Inputnumber: Inputnumber#currency mode not allowing to remove minus sign for Dollar and INR fields.
  • Loading branch information
cetincakiroglu committed Dec 20, 2023
2 parents 0aeef82 + 1a84546 commit 7f32209
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 7f32209

Please sign in to comment.