diff --git a/src/components/Table/editors/TextEditor.tsx b/src/components/Table/editors/TextEditor.tsx index 5b18d6ac..ab1a2565 100644 --- a/src/components/Table/editors/TextEditor.tsx +++ b/src/components/Table/editors/TextEditor.tsx @@ -24,8 +24,10 @@ export default function TextEditor({ row, column }: EditorProps) { return () => { const newValue = inputRef.current?.value; if (newValue !== undefined && updateCell) { - if (type === FieldType.number || type === FieldType.percentage) { + if (type === FieldType.number) { updateCell(row.ref, column.key, Number(newValue)); + } else if (type === FieldType.percentage) { + updateCell(row.ref, column.key, Number(newValue) / 100); } else { updateCell(row.ref, column.key, newValue); }