Skip to content

Commit

Permalink
Fix primefaces primefaces#4875 InputNumber: Doesn't allow minus sign …
Browse files Browse the repository at this point in the history
…in currency mode
  • Loading branch information
akshayantony55 committed Sep 6, 2023
1 parent 8fd90a5 commit a17d99c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/lib/inputnumber/InputNumber.js
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ export const InputNumber = React.memo(
};

const allowMinusSign = () => {
return props.min === null || props.min < 0;
return props.min === null || rootProps.min === null || props.min < 0;
};

const isMinusSign = (char) => {
Expand Down
2 changes: 1 addition & 1 deletion components/lib/inputnumber/inputnumber.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ export interface InputNumberProps extends Omit<React.DetailedHTMLProps<React.HTM
/**
* Mininum boundary value.
*/
min?: number | undefined | null;
min?: number | undefined;
/**
* Maximum boundary value.
*/
Expand Down

0 comments on commit a17d99c

Please sign in to comment.