()
| 4080 | |
| 4081 | // Public |
| 4082 | show() { |
| 4083 | // Shows this elem and deactivate the active sibling if exists |
| 4084 | const innerElem = this._element; |
| 4085 | if (this._elemIsActive(innerElem)) { |
| 4086 | return; |
| 4087 | } |
| 4088 | |
| 4089 | // Search for active tab on same parent to deactivate it |
| 4090 | const active = this._getActiveElem(); |
| 4091 | const hideEvent = active ? EventHandler.trigger(active, EVENT_HIDE$1, { |
| 4092 | relatedTarget: innerElem |
| 4093 | }) : null; |
| 4094 | const showEvent = EventHandler.trigger(innerElem, EVENT_SHOW$1, { |
| 4095 | relatedTarget: active |
| 4096 | }); |
| 4097 | if (showEvent.defaultPrevented || hideEvent && hideEvent.defaultPrevented) { |
| 4098 | return; |
| 4099 | } |
| 4100 | this._deactivate(active, innerElem); |
| 4101 | this._activate(innerElem, active); |
| 4102 | } |
| 4103 | |
| 4104 | // Private |
| 4105 | _activate(element, relatedElem) { |
no test coverage detected