From ae84e7ffd64085f3371d7c113aa0e489091dc05f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marisol=20Pe=C3=B1a?= <65489307+masopego@users.noreply.github.com> Date: Mon, 12 Dec 2022 12:05:33 +0100 Subject: [PATCH] feat: add array conditions to dependent question in multiple_checkboxes (#126) --- src/builder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/builder.js b/src/builder.js index deabf34b..e9090954 100644 --- a/src/builder.js +++ b/src/builder.js @@ -228,7 +228,7 @@ const FormBuilder = ({ : conditionValue || [] return getMultiFormattedValue() && - getMultiFormattedValue().some((e) => e === getConditions()) + getMultiFormattedValue().some((e) => getConditions().includes(e)) ? renderComponent() : null }