From 4039d29f42a7e6f49cb62fa995a8f1e08e78052b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mose=20M=C3=BCller?= Date: Thu, 4 Jul 2024 12:48:07 +0200 Subject: [PATCH] fix: instant string update through frontend --- frontend/src/components/StringComponent.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/StringComponent.tsx b/frontend/src/components/StringComponent.tsx index 654f604..1003612 100644 --- a/frontend/src/components/StringComponent.tsx +++ b/frontend/src/components/StringComponent.tsx @@ -49,7 +49,13 @@ export const StringComponent = React.memo((props: StringComponentProps) => { const handleChange = (event) => { setInputString(event.target.value); if (isInstantUpdate) { - changeCallback(event.target.value); + changeCallback({ + type: 'str', + value: event.target.value, + full_access_path: fullAccessPath, + readonly: readOnly, + doc: docString + }); } };