@energycap/components 0.39.17-ECAP-23124-menu-item-divider-improvements.20240523-1631 → 0.39.17-ECAP-23124-menu-item-divider-improvements.20240528-1347
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2244,6 +2244,11 @@ class MenuComponent {
|
|
2244
2244
|
if (this.items) {
|
2245
2245
|
this.items.forEach((item, index) => {
|
2246
2246
|
item.id = item.id ? item.id : this.id + '_item' + index;
|
2247
|
+
if (item.items) {
|
2248
|
+
item.items.forEach((childItem, childIndex) => {
|
2249
|
+
childItem.id = childItem.id ? childItem.id : this.id + '_item' + index + '-' + childIndex;
|
2250
|
+
});
|
2251
|
+
}
|
2247
2252
|
});
|
2248
2253
|
}
|
2249
2254
|
}
|