MCPcopy Index your code
hub / github.com/angular/components / _handleMouseLeave

Method _handleMouseLeave

src/material/tooltip/tooltip.ts:1087–1095  ·  view source on GitHub ↗
({relatedTarget}: MouseEvent)

Source from the content-addressed store, hash-verified

1085 }
1086
1087 _handleMouseLeave({relatedTarget}: MouseEvent) {
1088 if (!relatedTarget || !this._triggerElement.contains(relatedTarget as Node)) {
1089 if (this.isVisible()) {
1090 this.hide(this._mouseLeaveHideDelay);
1091 } else {
1092 this._finalizeAnimation(false);
1093 }
1094 }
1095 }
1096
1097 /**
1098 * Callback for when the timeout in this.show() gets completed.

Callers

nothing calls this directly

Calls 3

isVisibleMethod · 0.95
hideMethod · 0.95
_finalizeAnimationMethod · 0.95

Tested by

no test coverage detected