From d8a0abe9bcb5f6d3a35123ee28bcb25af0a4e978 Mon Sep 17 00:00:00 2001 From: Jory Hogeveen Date: Tue, 15 Oct 2024 15:07:59 +0200 Subject: [PATCH] Add `meetsConditionalLogic` as a hook dependency Signed-off-by: Jory Hogeveen --- ui/js/dfv/src/components/field-wrapper/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/js/dfv/src/components/field-wrapper/index.js b/ui/js/dfv/src/components/field-wrapper/index.js index 689867c5e7..6a6cf12b2a 100644 --- a/ui/js/dfv/src/components/field-wrapper/index.js +++ b/ui/js/dfv/src/components/field-wrapper/index.js @@ -206,7 +206,7 @@ export const FieldWrapper = ( props ) => { return () => { blockEditor.unlockPostSaving( `pods-field-${ name }` ); }; - }, [ validationMessages ] ); + }, [ validationMessages, meetsConditionalLogic ] ); // Don't render a field that hasn't had its dependencies met. if ( ! meetsConditionalLogic ) {