mirror of
https://github.com/rowyio/rowy.git
synced 2026-02-24 04:01:17 +01:00
Merge pull request #1412 from AnushDeokar/fix/tablename-textbox-ui-error-firstclick
Table name textbox UI error fix
This commit is contained in:
@@ -27,7 +27,7 @@ export default function TableName({ watchedField, ...props }: ITableNameProps) {
|
||||
onChange(startCase(watchedValue));
|
||||
} else if (typeof value === "string") {
|
||||
// otherwise if table name is valid, set watched value to table name
|
||||
onChange(value.trim());
|
||||
onChange(startCase(value.trim()));
|
||||
}
|
||||
}
|
||||
}, [watchedValue, disabled, onChange, value]);
|
||||
|
||||
@@ -213,7 +213,7 @@ export const tableSettings = (
|
||||
name: "name",
|
||||
label: "Table name",
|
||||
required: true,
|
||||
watchedField: "collection",
|
||||
watchedField: "name",
|
||||
assistiveText: "User-facing name for this table",
|
||||
autoFocus: true,
|
||||
gridCols: { xs: 12, sm: 6 },
|
||||
|
||||
Reference in New Issue
Block a user