Skip to content

Commit

Permalink
fix(fab): fix list patch error by key
Browse files Browse the repository at this point in the history
  • Loading branch information
haoziqaq committed Aug 12, 2024
1 parent 8380ad5 commit fa32b78
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/varlet-ui/src/fab/Fab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,9 @@ export default defineComponent({
onClick={(e) => e.stopPropagation()}
>
{children.map((child) => (
<div class={n('action')}>{child}</div>
<div class={n('action')} key={child.key ?? undefined}>
{child}
</div>
))}
</div>
</Transition>
Expand Down

0 comments on commit fa32b78

Please sign in to comment.