@ethlete/components 1.0.0-next.70 → 1.0.0-next.71

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.0-next.71
4
+
5
+ ### Patch Changes
6
+
7
+ - Two `et-nav-tab-link`s that are active at the same time no longer freeze the app. The last active link is selected.
8
+
3
9
  ## 1.0.0-next.70
4
10
 
5
11
  ### Minor Changes
@@ -75244,10 +75244,14 @@ class NavTabLinkDirective {
75244
75244
  this.routerLinkIsActive.set(active);
75245
75245
  }), takeUntilDestroyed(this.destroyRef))
75246
75246
  .subscribe();
75247
+ // Reads no selection state: with two links active at once (RouterLinkActive settles in a microtask
75248
+ // after NavigationEnd), each would select itself in turn and freeze change detection.
75247
75249
  effect(() => {
75248
- if (this.isActive() && this.tabBar?.activeTrigger() !== this.trigger) {
75249
- this.tabBar?.selectTrigger(this.trigger);
75250
- }
75250
+ const tabBar = this.tabBar;
75251
+ if (!tabBar || !this.isActive())
75252
+ return;
75253
+ tabBar.triggers();
75254
+ untracked(() => tabBar.selectTrigger(this.trigger));
75251
75255
  });
75252
75256
  if (ngDevMode) {
75253
75257
  afterNextRender(() => {
@@ -77110,7 +77114,7 @@ const provideUnsavedChangesAlertDialog = () => provideUnsavedChangesConfirm(() =
77110
77114
 
77111
77115
  // Generated from package.json by tools/scripts/generate-version.js - do not edit.
77112
77116
  /** The version of `@ethlete/components` this build was cut from. */
77113
- const COMPONENTS_VERSION = '1.0.0-next.70';
77117
+ const COMPONENTS_VERSION = '1.0.0-next.71';
77114
77118
 
77115
77119
  /**
77116
77120
  * Generated bundle index. Do not edit.