diff --git a/packages/amis/src/renderers/Form/InputNumber.tsx b/packages/amis/src/renderers/Form/InputNumber.tsx index 500664b49..b269f83e7 100644 --- a/packages/amis/src/renderers/Form/InputNumber.tsx +++ b/packages/amis/src/renderers/Form/InputNumber.tsx @@ -508,6 +508,14 @@ export default class NumberControl extends React.Component< value = numberFormatter(value, finalPrecision); } } + if ( + suffix && + userTyping && + this.input?.selectionStart === input.length + ) { + return `${prefix || ''}${value}`; + } + return `${prefix || ''}${value}${suffix || ''}`; } : undefined;