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

Method setActiveStyles

src/cdk/listbox/listbox.ts:204–210  ·  view source on GitHub ↗

* No-op implemented as a part of `Highlightable`. * @docs-private

()

Source from the content-addressed store, hash-verified

202 * @docs-private
203 */
204 setActiveStyles() {
205 // If the listbox is using `aria-activedescendant` the option won't have focus so the
206 // browser won't scroll them into view automatically so we need to do it ourselves.
207 if (this.listbox.useActiveDescendant) {
208 this.element.scrollIntoView({block: 'nearest', inline: 'nearest'});
209 }
210 }
211
212 /**
213 * No-op implemented as a part of `Highlightable`.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected