Skip to content

Commit

Permalink
Add clone key when key is 0
Browse files Browse the repository at this point in the history
  • Loading branch information
weotch committed Sep 1, 2022
1 parent a45ac6c commit 1287bd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ssr-carousel-track.vue
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export default
then vnode.data.attrs['aria-hidden'] = 'true'

# Prevent duplicate keys on clones
if isPeekingClone and vnode.key
if isPeekingClone and vnode.key?
then vnode.key += '-clone-' + index

# Return modified vnode
Expand Down

0 comments on commit 1287bd2

Please sign in to comment.