Detaches the backdrop (if any) associated with the overlay.
()
| 502 | |
| 503 | /** Detaches the backdrop (if any) associated with the overlay. */ |
| 504 | detachBackdrop(): void { |
| 505 | if (this._animationsDisabled) { |
| 506 | this._backdropRef?.dispose(); |
| 507 | this._backdropRef = null; |
| 508 | } else { |
| 509 | this._backdropRef?.detach(); |
| 510 | } |
| 511 | } |
| 512 | |
| 513 | /** Toggles a single CSS class or an array of classes on an element. */ |
| 514 | private _toggleClasses(element: HTMLElement, cssClasses: string | string[], isAdd: boolean) { |