This commit is contained in:
Alexander Skvortsov 2021-12-13 01:58:47 -05:00
parent d0c160923d
commit 6b7dfaa598
No known key found for this signature in database
GPG Key ID: C4E3BBF9C3412B4C

View File

@ -75,13 +75,13 @@ export default function listItems<Attrs extends ComponentAttrs>(
if (isVnode(item)) {
classes.push(item.attrs?.itemClassName || item.itemClassName);
if (item.tag.isActive?.(item.attrs)) {
classes.push('active');
}
}
const key = isVnode(item) && item?.attrs?.key || item.itemName;
const key = (isVnode(item) && item?.attrs?.key) || item.itemName;
return (
<Tag className={classList(classes)} key={key} {...attributes}>