@kodaris/krubble-app-components 1.0.4 → 1.0.5

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.
@@ -1489,6 +1489,8 @@ let KRScaffold = class KRScaffold extends i$1 {
1489
1489
  this.toggleNavItem(item.id);
1490
1490
  }
1491
1491
  else {
1492
+ // Set active item immediately on click for instant visual feedback
1493
+ this.activeNavItemId = item.id;
1492
1494
  const navEvent = new CustomEvent('nav-item-click', {
1493
1495
  detail: { item },
1494
1496
  bubbles: true,
@@ -1497,14 +1499,10 @@ let KRScaffold = class KRScaffold extends i$1 {
1497
1499
  });
1498
1500
  this.dispatchEvent(navEvent);
1499
1501
  // If a listener called preventDefault(), prevent the native navigation
1500
- // (e.g., Angular router handles it and will call updateActiveNavItem() after route change)
1502
+ // (e.g., SPA router handles navigation)
1501
1503
  if (navEvent.defaultPrevented) {
1502
1504
  e.preventDefault();
1503
1505
  }
1504
- else {
1505
- // Native browser navigation - set active item immediately for visual feedback
1506
- this.activeNavItemId = item.id;
1507
- }
1508
1506
  }
1509
1507
  }
1510
1508
  /**