From b2f370e75751ce4d42477f086eefaf0b660a7f66 Mon Sep 17 00:00:00 2001 From: melloware Date: Sun, 25 May 2025 08:00:44 -0400 Subject: [PATCH] Fix #7977: InputNumber also check maxFractionDigits --- components/lib/inputnumber/InputNumber.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/lib/inputnumber/InputNumber.js b/components/lib/inputnumber/InputNumber.js index 274ec83414..67ceba626f 100644 --- a/components/lib/inputnumber/InputNumber.js +++ b/components/lib/inputnumber/InputNumber.js @@ -49,7 +49,7 @@ export const InputNumber = React.memo( const stacked = props.showButtons && props.buttonLayout === 'stacked'; const horizontal = props.showButtons && props.buttonLayout === 'horizontal'; const vertical = props.showButtons && props.buttonLayout === 'vertical'; - const inputMode = props.inputMode || (props.mode === 'decimal' && !props.minFractionDigits ? 'numeric' : 'decimal'); + const inputMode = props.inputMode || (props.mode === 'decimal' && !props.minFractionDigits && !props.maxFractionDigits ? 'numeric' : 'decimal'); const getOptions = () => { return {