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

Method detachBackdrop

src/cdk/overlay/overlay-ref.ts:531–538  ·  view source on GitHub ↗

Detaches the backdrop (if any) associated with the overlay.

()

Source from the content-addressed store, hash-verified

529
530 /** Detaches the backdrop (if any) associated with the overlay. */
531 detachBackdrop(): void {
532 if (this._animationsDisabled) {
533 this._backdropRef?.dispose();
534 this._backdropRef = null;
535 } else {
536 this._backdropRef?.detach();
537 }
538 }
539
540 /** Toggles a single CSS class or an array of classes on an element. */
541 private _toggleClasses(element: HTMLElement, cssClasses: string | string[], isAdd: boolean) {

Callers 3

detachMethod · 0.95
dismissMethod · 0.80
closeMethod · 0.80

Calls 2

disposeMethod · 0.65
detachMethod · 0.65

Tested by

no test coverage detected