From c44047d21ef4382f96d6466dc9a85c4d659a451a Mon Sep 17 00:00:00 2001 From: Kuba Orlik Date: Sun, 11 Feb 2024 14:23:06 +0100 Subject: [PATCH] Rerender component preview on dropdown change --- src/back/routes/components.sreact.tsx | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/back/routes/components.sreact.tsx b/src/back/routes/components.sreact.tsx index 6ae99c1..d39415f 100644 --- a/src/back/routes/components.sreact.tsx +++ b/src/back/routes/components.sreact.tsx @@ -15,6 +15,8 @@ import objectPath from "object-path"; export const actionName = "Components"; +const rerender = "this.closest('form').requestSubmit()"; + const actions = { add_array_item: ( state: State, @@ -147,7 +149,10 @@ export default new (class ComponentsPage extends StatefulPage