@recursyve/nice-ui-kit.v2 13.2.0-beta.103 → 13.2.0-beta.105

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.
@@ -7166,18 +7166,6 @@ class NiceVerticalNavigationCollapsableItemComponent {
7166
7166
  * On init
7167
7167
  */
7168
7168
  ngOnInit() {
7169
- this._router.events
7170
- .pipe(filter(event => event instanceof NavigationEnd), takeUntil(this._unsubscribeAll))
7171
- .subscribe((event) => {
7172
- if (this._hasActiveChild(this.item, event.urlAfterRedirects)) {
7173
- this.hasChildActivated$.next(true);
7174
- this.expand();
7175
- }
7176
- else {
7177
- this.hasChildActivated$.next(false);
7178
- this.collapse();
7179
- }
7180
- });
7181
7169
  // Get the parent navigation component
7182
7170
  this._niceVerticalNavigationComponent = this._niceNavigationService.getComponent(this.name);
7183
7171
  // If the item has a children that has a matching url with the current url, expand...
@@ -7237,10 +7225,12 @@ class NiceVerticalNavigationCollapsableItemComponent {
7237
7225
  .subscribe((event) => {
7238
7226
  // If the item has a children that has a matching url with the current url, expand...
7239
7227
  if (this._hasActiveChild(this.item, event.urlAfterRedirects)) {
7228
+ this.hasChildActivated$.next(true);
7240
7229
  this.expand();
7241
7230
  }
7242
7231
  // Otherwise...
7243
7232
  else {
7233
+ this.hasChildActivated$.next(false);
7244
7234
  // If the autoCollapse is on, collapse...
7245
7235
  if (this.autoCollapse) {
7246
7236
  this.collapse();