MCPcopy
hub / github.com/angular/components / _detach

Method _detach

src/material/tooltip/tooltip.ts:587–593  ·  view source on GitHub ↗

Detaches the currently-attached tooltip.

()

Source from the content-addressed store, hash-verified

585
586 /** Detaches the currently-attached tooltip. */
587 private _detach() {
588 if (this._overlayRef && this._overlayRef.hasAttached()) {
589 this._overlayRef.detach();
590 }
591
592 this._tooltipInstance = null;
593 }
594
595 /** Updates the position of the current tooltip. */
596 private _updatePosition(overlayRef: OverlayRef) {

Callers 5

positionAtOriginMethod · 0.95
showMethod · 0.95
hideMethod · 0.95
_createOverlayMethod · 0.95
enableMethod · 0.80

Calls 2

hasAttachedMethod · 0.65
detachMethod · 0.65

Tested by

no test coverage detected