We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 61188d6 commit fde20afCopy full SHA for fde20af
1 file changed
components/lib/inputnumber/InputNumber.js
@@ -49,7 +49,7 @@ export const InputNumber = React.memo(
49
const stacked = props.showButtons && props.buttonLayout === 'stacked';
50
const horizontal = props.showButtons && props.buttonLayout === 'horizontal';
51
const vertical = props.showButtons && props.buttonLayout === 'vertical';
52
- const inputMode = props.inputMode || (props.mode === 'decimal' && !props.minFractionDigits ? 'numeric' : 'decimal');
+ const inputMode = props.inputMode || (props.mode === 'decimal' && !props.minFractionDigits && !props.maxFractionDigits ? 'numeric' : 'decimal');
53
54
const getOptions = () => {
55
return {
0 commit comments