Skip to content

Commit cc3c46e

Browse files
committed
fixup! feat(cdk-experimental/combobox): add tree integration
1 parent 1f6e59e commit cc3c46e

File tree

4 files changed

+19
-2
lines changed

4 files changed

+19
-2
lines changed

src/cdk-experimental/deferred-content/deferred-content.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import {
1010
Directive,
1111
effect,
1212
inject,
13-
input,
1413
TemplateRef,
1514
signal,
1615
ViewContainerRef,

src/cdk-experimental/tree/tree.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import {_IdGenerator} from '@angular/cdk/a11y';
2424
import {Directionality} from '@angular/cdk/bidi';
2525
import {DeferredContent, DeferredContentAware} from '@angular/cdk-experimental/deferred-content';
2626
import {ComboboxTreePattern, TreeItemPattern, TreePattern} from '../ui-patterns';
27-
import {CdkCombobox, CdkComboboxPopup} from '@angular/cdk-experimental/combobox';
27+
import {CdkComboboxPopup} from '@angular/cdk-experimental/combobox';
2828

2929
interface HasElement {
3030
element: Signal<HTMLElement>;
@@ -342,6 +342,8 @@ export class CdkTreeItemGroup<V> implements OnInit, OnDestroy, HasElement {
342342
this._deferredContentAware.contentVisible.set(
343343
tree.pattern.inputs.combobox()?.isFocused() ?? false,
344344
);
345+
} else {
346+
this._deferredContentAware.contentVisible.set(this.visible());
345347
}
346348
});
347349
}

src/cdk-experimental/ui-patterns/listbox/combobox-listbox.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/**
2+
* @license
3+
* Copyright Google LLC All Rights Reserved.
4+
*
5+
* Use of this source code is governed by an MIT-style license that can be
6+
* found in the LICENSE file at https://angular.dev/license
7+
*/
8+
19
import {computed} from '@angular/core';
210
import {ListboxInputs, ListboxPattern} from './listbox';
311
import {SignalLike} from '../behaviors/signal-like/signal-like';

src/cdk-experimental/ui-patterns/tree/combobox-tree.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/**
2+
* @license
3+
* Copyright Google LLC All Rights Reserved.
4+
*
5+
* Use of this source code is governed by an MIT-style license that can be
6+
* found in the LICENSE file at https://angular.dev/license
7+
*/
8+
19
import {computed} from '@angular/core';
210
import {TreeInputs, TreePattern, TreeItemPattern} from './tree';
311
import {SignalLike} from '../behaviors/signal-like/signal-like';

0 commit comments

Comments
 (0)