codexly-ui 0.0.99 → 0.1.0

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.
@@ -12009,6 +12009,7 @@ class ClxMenuComponent {
12009
12009
  _rla;
12010
12010
  _childItems;
12011
12011
  _destroyRef = inject(DestroyRef);
12012
+ _injector = inject(Injector);
12012
12013
  constructor() {
12013
12014
  effect(() => { if (this.active())
12014
12015
  this._isExpanded.set(true); });
@@ -12045,10 +12046,13 @@ class ClxMenuComponent {
12045
12046
  this._childItems.changes
12046
12047
  .pipe(takeUntilDestroyed(this._destroyRef))
12047
12048
  .subscribe(() => this._syncChildren());
12049
+ effect(() => {
12050
+ const color = this._color();
12051
+ this._childItems?.forEach(c => c.inheritColor(color));
12052
+ }, { injector: this._injector });
12048
12053
  }
12049
12054
  _syncChildren() {
12050
- const color = this._color();
12051
- this._childItems.forEach(c => c.inheritColor(color));
12055
+ this._childItems.forEach(c => c.inheritColor(this._color()));
12052
12056
  }
12053
12057
  _toggle() {
12054
12058
  this._isExpanded.update(v => !v);