()
| 2486 | this._backdrop.show(() => this._showElement(relatedTarget)); |
| 2487 | } |
| 2488 | hide() { |
| 2489 | if (!this._isShown || this._isTransitioning) { |
| 2490 | return; |
| 2491 | } |
| 2492 | const hideEvent = EventHandler.trigger(this._element, EVENT_HIDE$4); |
| 2493 | if (hideEvent.defaultPrevented) { |
| 2494 | return; |
| 2495 | } |
| 2496 | this._isShown = false; |
| 2497 | this._isTransitioning = true; |
| 2498 | this._focustrap.deactivate(); |
| 2499 | this._element.classList.remove(CLASS_NAME_SHOW$4); |
| 2500 | this._queueCallback(() => this._hideModal(), this._element, this._isAnimated()); |
| 2501 | } |
| 2502 | dispose() { |
| 2503 | EventHandler.off(window, EVENT_KEY$4); |
| 2504 | EventHandler.off(this._dialog, EVENT_KEY$4); |
no test coverage detected