Skip to content

Commit

Permalink
Fix primefaces primefaces#4875 InputNumber: Resolved PR comment
Browse files Browse the repository at this point in the history
  • Loading branch information
akshayantony55 committed Sep 6, 2023
1 parent 500f06e commit 7aa8e3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/lib/inputnumber/InputNumber.js
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ export const InputNumber = React.memo(
} else {
newValueStr = inputValue.slice(0, selectionStart - 1) + inputValue.slice(selectionStart);
}
} else if (props.mode === 'currency' && ['¥', '$', 'I', 'N', 'R'].includes(deleteChar)) {
} else if (props.mode === 'currency' && deleteChar.search(_currency.current) != -1) {
newValueStr = inputValue.slice(1);
}

Expand Down

0 comments on commit 7aa8e3b

Please sign in to comment.