Skip to content

Commit fa32b78

Browse files
committed
fix(fab): fix list patch error by key
1 parent 8380ad5 commit fa32b78

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/varlet-ui/src/fab/Fab.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,9 @@ export default defineComponent({
159159
onClick={(e) => e.stopPropagation()}
160160
>
161161
{children.map((child) => (
162-
<div class={n('action')}>{child}</div>
162+
<div class={n('action')} key={child.key ?? undefined}>
163+
{child}
164+
</div>
163165
))}
164166
</div>
165167
</Transition>

0 commit comments

Comments
 (0)