From f7ae84a9238d44c6ae23d479dbefb95ae4f53623 Mon Sep 17 00:00:00 2001 From: Dusan Stojanovic Date: Thu, 16 Apr 2026 09:38:45 +0200 Subject: [PATCH] fix: stale initialValue when components remonts * when the fields is in arrayField, you fill something in it, save form * then delete that entry from array field and add again, it still * contains old value even though in formik that field is empty --- src/lib/forms/RichInputField.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/forms/RichInputField.js b/src/lib/forms/RichInputField.js index 2965b485..f3283898 100644 --- a/src/lib/forms/RichInputField.js +++ b/src/lib/forms/RichInputField.js @@ -50,7 +50,7 @@ export class RichInputField extends Component { editor ) : ( initialValue} // () => To avoid stale initialValue when remounting inputValue={() => value} // () => To avoid re-rendering optimized={optimized} editorConfig={editorConfig}