Hides the tooltip.
()
| 51 | |
| 52 | /** Hides the tooltip. */ |
| 53 | async hide(): Promise<void> { |
| 54 | const host = await this.host(); |
| 55 | |
| 56 | // We need to dispatch both `touchstart` and a hover event, because |
| 57 | // the tooltip binds different events depending on the device. |
| 58 | await host.dispatchEvent('touchend'); |
| 59 | await host.mouseAway(); |
| 60 | const panel = await this._optionalPanel(); |
| 61 | await panel?.dispatchEvent('animationend', {animationName: this._hideAnimationName}); |
| 62 | } |
| 63 | |
| 64 | /** Gets whether the tooltip is open. */ |
| 65 | async isOpen(): Promise<boolean> { |
no test coverage detected