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

Method _detachOverlay

src/material/select/select.ts:803–808  ·  view source on GitHub ↗

Detaches the current overlay directive.

()

Source from the content-addressed store, hash-verified

801
802 /** Detaches the current overlay directive. */
803 private _detachOverlay() {
804 this._overlayDir.detachOverlay();
805 // Some of the overlay detachment logic depends on change detection.
806 // Mark for check to ensure that things get picked up in a timely manner.
807 this._changeDetectorRef.markForCheck();
808 }
809
810 /**
811 * 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