We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e7a073c + 41c52b1 commit 2ef292dCopy full SHA for 2ef292d
1 file changed
app/[locale]/dashboard/organization/[organizationId]/dataset/[id]/edit/components/ResourceSchema.tsx
@@ -38,9 +38,9 @@ const DescriptionCell = ({
38
}) => {
39
const [description, setDescription] = React.useState(value || '');
40
41
- const handleChange = (text: string) => {
42
- setDescription(text);
43
- handleFieldChange('description', text, rowIndex);
+ const handleChange = (e:any) => {
+ setDescription(e?.target?.value);
+ handleFieldChange('description', e?.target?.value, rowIndex);
44
};
45
46
return (
@@ -49,8 +49,8 @@ const DescriptionCell = ({
49
labelHidden
50
name="description"
51
type="text"
52
- value={description}
53
- onChange={(e: any) => handleChange(e)}
+ defaultValue={description}
+ onBlur={(e: any) => handleChange(e)}
54
/>
55
);
56
0 commit comments