From ac05b59a3295b695b4fceed05a5b08324f28fa5d Mon Sep 17 00:00:00 2001 From: Gustav Hansen Date: Thu, 16 Mar 2023 13:32:05 +0100 Subject: [PATCH] Settings: Update redux state onChange instead of onBlur --- .../pages/ReviewWorkflows/components/Stages/Stage/Stage.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/core/admin/ee/admin/pages/SettingsPage/pages/ReviewWorkflows/components/Stages/Stage/Stage.js b/packages/core/admin/ee/admin/pages/SettingsPage/pages/ReviewWorkflows/components/Stages/Stage/Stage.js index 7a723e80e6..47e24f7cac 100644 --- a/packages/core/admin/ee/admin/pages/SettingsPage/pages/ReviewWorkflows/components/Stages/Stage/Stage.js +++ b/packages/core/admin/ee/admin/pages/SettingsPage/pages/ReviewWorkflows/components/Stages/Stage/Stage.js @@ -61,7 +61,10 @@ function Stage({ id, name, index, canDelete, isOpen: isOpenDefault = false }) { defaultMessage: 'Stage name', })} error={meta.error ?? false} - onBlur={(event) => dispatch(updateStage(id, { name: event.target.value }))} + onChange={(event) => { + field.onChange(event); + dispatch(updateStage(id, { name: event.target.value })); + }} />