Detaches the backdrop (if any) associated with the overlay.
()
| 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) { |