diff --git a/framework/core/js/src/common/helpers/listItems.tsx b/framework/core/js/src/common/helpers/listItems.tsx index e6fb10478..0e8985fd3 100644 --- a/framework/core/js/src/common/helpers/listItems.tsx +++ b/framework/core/js/src/common/helpers/listItems.tsx @@ -75,13 +75,13 @@ export default function listItems( 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 (