+ {columns.map(({ type, keyName, placeholder, required }, innerIdx) => {
+ const value = row[keyName];
+
+ return (
+
+ handleChange(keyName, type === 'number' ? Number(val) : val, idx)}
+ autoFocus={!value && rows.length > 1 && idx === rows.length - 1 && innerIdx === 0}
+ style={{ maxWidth, paddingLeft: 10 }}
+ hasError={!!errorMessage && (!required || (required && !value))}
+ />
+ |
+ );
+ })}
handleDeleteRow(idx)}>
@@ -155,7 +158,9 @@ export const InputTable: React.FC = ({ columns, initialValues = [], value
|