Skip to content

Commit

Permalink
fix(avatar-group): fix z-index parameter error in avatar-group
Browse files Browse the repository at this point in the history
  • Loading branch information
oljc committed Jan 16, 2024
1 parent 002604f commit c598348
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/web-vue/components/avatar/avatar-group.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ const AvatarGroup = defineComponent({
const avatarsInPopover =
props.maxCount > 0 ? children.slice(props.maxCount) : [];

if (total.value !== avatarsToRender.length) {
total.value = avatarsToRender.length;
if (total.value !== children.length) {
total.value = children.length;
}

return (
Expand All @@ -109,7 +109,7 @@ const AvatarGroup = defineComponent({
v-slots={{
content: () => <div>{avatarsInPopover}</div>,
}}
{...(props.maxPopoverTriggerProps as unknown)}
{...props.maxPopoverTriggerProps}
>
<Avatar
class={`${prefixCls}-max-count-avatar`}
Expand Down

0 comments on commit c598348

Please sign in to comment.