From 8baee1292f62ee7c4380ddb57b69bb9a23dbc2e0 Mon Sep 17 00:00:00 2001 From: Romain Hamel Date: Mon, 13 May 2024 10:15:24 +0200 Subject: [PATCH] fix(Chip): size injection (#105) --- src/runtime/composables/useAvatarGroup.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/composables/useAvatarGroup.ts b/src/runtime/composables/useAvatarGroup.ts index 2ab28bc0..3303395c 100644 --- a/src/runtime/composables/useAvatarGroup.ts +++ b/src/runtime/composables/useAvatarGroup.ts @@ -7,7 +7,7 @@ export function useAvatarGroup(props: { size: AvatarGroupProps['size'] }) { const injectedSize = inject(avatarGroupInjectionKey, undefined) const size = computed(() => props.size ?? injectedSize?.value.size) - provide('avatar-size', size) + provide(avatarGroupInjectionKey, computed(() => ({ size: size.value }))) return { size