(relatedTarget)
| 2446 | return this._isShown ? this.hide() : this.show(relatedTarget); |
| 2447 | } |
| 2448 | show(relatedTarget) { |
| 2449 | if (this._isShown || this._isTransitioning) { |
| 2450 | return; |
| 2451 | } |
| 2452 | const showEvent = EventHandler.trigger(this._element, EVENT_SHOW$4, { |
| 2453 | relatedTarget |
| 2454 | }); |
| 2455 | if (showEvent.defaultPrevented) { |
| 2456 | return; |
| 2457 | } |
| 2458 | this._isShown = true; |
| 2459 | this._isTransitioning = true; |
| 2460 | this._scrollBar.hide(); |
| 2461 | document.body.classList.add(CLASS_NAME_OPEN); |
| 2462 | this._adjustDialog(); |
| 2463 | this._backdrop.show(() => this._showElement(relatedTarget)); |
| 2464 | } |
| 2465 | hide() { |
| 2466 | if (!this._isShown || this._isTransitioning) { |
| 2467 | return; |
no test coverage detected