()
| 2463 | this._backdrop.show(() => this._showElement(relatedTarget)); |
| 2464 | } |
| 2465 | hide() { |
| 2466 | if (!this._isShown || this._isTransitioning) { |
| 2467 | return; |
| 2468 | } |
| 2469 | const hideEvent = EventHandler.trigger(this._element, EVENT_HIDE$4); |
| 2470 | if (hideEvent.defaultPrevented) { |
| 2471 | return; |
| 2472 | } |
| 2473 | this._isShown = false; |
| 2474 | this._isTransitioning = true; |
| 2475 | this._focustrap.deactivate(); |
| 2476 | this._element.classList.remove(CLASS_NAME_SHOW$4); |
| 2477 | this._queueCallback(() => this._hideModal(), this._element, this._isAnimated()); |
| 2478 | } |
| 2479 | dispose() { |
| 2480 | EventHandler.off(window, EVENT_KEY$4); |
| 2481 | EventHandler.off(this._dialog, EVENT_KEY$4); |
no test coverage detected