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

Method _closeItem

src/aria/private/menu/menu.ts:266–275  ·  view source on GitHub ↗

Closes the specified menu item after a delay.

(item: MenuItemPattern<V>)

Source from the content-addressed store, hash-verified

264
265 /** Closes the specified menu item after a delay. */
266 private _closeItem(item: MenuItemPattern<V>) {
267 this._clearOpenTimeout();
268
269 if (!this._closeTimeout) {
270 this._closeTimeout = setTimeout(() => {
271 item.close();
272 this._closeTimeout = undefined;
273 }, this.inputs.expansionDelay());
274 }
275 }
276
277 /** Opens the specified menu item after a delay. */
278 private _openItem(item: MenuItemPattern<V>) {

Callers 1

onMouseOverMethod · 0.95

Calls 2

_clearOpenTimeoutMethod · 0.95
closeMethod · 0.45

Tested by

no test coverage detected