Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix primefaces #4875 InputNumber: Doesn't allow minus sign in currency mode #4881

Merged
merged 5 commits into from
Sep 6, 2023
Merged
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
Loading