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

Method _setHasFocus

src/cdk/menu/menu-trigger.ts:220–224  ·  view source on GitHub ↗

* Sets whether the trigger's menu stack has focus. * @param hasFocus Whether the menu stack has focus.

(hasFocus: boolean)

Source from the content-addressed store, hash-verified

218 * @param hasFocus Whether the menu stack has focus.
219 */
220 _setHasFocus(hasFocus: boolean) {
221 if (!this._parentMenu) {
222 this.menuStack.setHasFocus(hasFocus);
223 }
224 }
225
226 /**
227 * Subscribe to the mouseenter events and close any sibling menu items if this element is moused

Callers

nothing calls this directly

Calls 1

setHasFocusMethod · 0.80

Tested by

no test coverage detected