From 75e6fbf0b5c2cc95a2bb6f5549afed5eeca635ca Mon Sep 17 00:00:00 2001 From: Guillermo Cacheda Date: Wed, 27 Mar 2024 09:29:19 +0100 Subject: [PATCH] fix: make arrays reactive with ref in useHybridInject (#1437) --- packages/x-components/src/composables/use-hybrid-inject.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/x-components/src/composables/use-hybrid-inject.ts b/packages/x-components/src/composables/use-hybrid-inject.ts index 58b891c8c0..676c70de49 100644 --- a/packages/x-components/src/composables/use-hybrid-inject.ts +++ b/packages/x-components/src/composables/use-hybrid-inject.ts @@ -21,7 +21,7 @@ const makeInjectionReactive = ( ) { const xRefValue = injection.value; - if (xRefValue && typeof xRefValue === 'object') { + if (xRefValue && typeof xRefValue === 'object' && !Array.isArray(xRefValue)) { return reactive(xRefValue); } else { return ref(xRefValue);