MCPcopy Create free account
hub / github.com/angular/components / getFocusIndex

Function getFocusIndex

src/material/list/selection-list.spec.ts:50–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48 });
49
50 function getFocusIndex() {
51 return listOptions.findIndex(o => document.activeElement === o.nativeElement);
52 }
53
54 it('should be able to set a value on a list option', () => {
55 const optionValues = ['inbox', 'starred', 'sent-mail', 'archive', 'drafts'];

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected