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

Method _detachOverlay

src/material/select/select.ts:805–810  ·  view source on GitHub ↗

Detaches the current overlay directive.

()

Source from the content-addressed store, hash-verified

803
804 /** Detaches the current overlay directive. */
805 private _detachOverlay() {
806 this._overlayDir.detachOverlay();
807 // Some of the overlay detachment logic depends on change detection.
808 // Mark for check to ensure that things get picked up in a timely manner.
809 this._changeDetectorRef.markForCheck();
810 }
811
812 /**
813 * Sets the select's value. Part of the ControlValueAccessor interface

Callers 1

_exitAndDetachMethod · 0.95

Calls 2

detachOverlayMethod · 0.80
markForCheckMethod · 0.80

Tested by

no test coverage detected