From f11c57665c8b48ccf716ad0b1c2c9daa95a4e8f3 Mon Sep 17 00:00:00 2001 From: John Teague <164385719+johnformio@users.noreply.github.com> Date: Mon, 29 Jul 2024 13:33:42 -0500 Subject: [PATCH] added check for component.input --- src/utils/formUtil.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/formUtil.ts b/src/utils/formUtil.ts index 323ed0f0..4d3e65c3 100644 --- a/src/utils/formUtil.ts +++ b/src/utils/formUtil.ts @@ -680,7 +680,7 @@ export function getComponent( ): (Component | undefined) { let result; eachComponent(components, (component: Component, path: any) => { - if ((path === key) || (component.path === key) || (component.key === key)) { + if ((path === key) || (component.path === key) || (component.input && (component.key === key))) { result = component; return true; }