Skip to content

feat(ListKeyManager): Support Signal-based Query #28710

Closed
@keatkeat87

Description

@keatkeat87

Feature Description

image

Signal-based query doesn't return QueryList anymore, it only returns readonly Array.
so ListKeyManager should support it.

and another thing
image
we should have a way to watch Signal like previously watching QueryList.

Workaround:
if array will not changes, we can just cast to not readonly

const keyManager = new ListKeyManager(this.items() as FocusableOptionDerective[]);

if we need watch the array, we can access private QueryList from Signal.

const signalNode = this.items[SIGNAL] as { _queryList: QueryList<FocusableOptionDerective> };
const keyManager = new ListKeyManager(signalNode._queryList);

Use Case

No response

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: cdk/a11y

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions