diff --git a/packages/ui/src/widgets/schema-editor/editor/Editable.tsx b/packages/ui/src/widgets/schema-editor/editor/Editable.tsx index f29282f17..3d604f24c 100644 --- a/packages/ui/src/widgets/schema-editor/editor/Editable.tsx +++ b/packages/ui/src/widgets/schema-editor/editor/Editable.tsx @@ -227,8 +227,12 @@ export function TextDataEditor({ value, onChange, onCancel, onSave }: DataEditor onChange(e.target.value); }; + const onBlur = () => { + onSave?.(); + }; + return ( - + ); } diff --git a/packages/ui/src/widgets/schema-editor/editor/PropertyEditor.tsx b/packages/ui/src/widgets/schema-editor/editor/PropertyEditor.tsx index 173d7e9f9..d5488a195 100644 --- a/packages/ui/src/widgets/schema-editor/editor/PropertyEditor.tsx +++ b/packages/ui/src/widgets/schema-editor/editor/PropertyEditor.tsx @@ -49,7 +49,7 @@ export function PropertyEditor({ value, onChange, onCancel, onSave }: DataEditor
- @@ -82,8 +82,12 @@ export function PropertyNameEditor({ value, onChange, onCancel, onSave }: DataEd onChange(e.target.value); } + const onBlur = () => { + onSave?.(); + }; + return ( - + ) } @@ -101,7 +105,7 @@ function PropertyTypeEditor({ value, onChange, onCancel, onSave }: DataEditorPro } } return ( -