TSK-1089: Proper Recruit Archive (#2952)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev
2023-04-12 09:26:53 +07:00
committed by GitHub
parent 751a65f37e
commit ac0eac5eff
4 changed files with 35 additions and 11 deletions
+2 -1
View File
@@ -15,8 +15,8 @@ const emptyTooltip: LabelAndProps = {
let storedValue: LabelAndProps = emptyTooltip
export const tooltipstore = writable<LabelAndProps>(emptyTooltip)
let toHandler: any
export function tooltip (node: HTMLElement, options?: LabelAndProps): any {
let toHandler: any
if (options === undefined) {
return {}
}
@@ -80,6 +80,7 @@ export function showTooltip (
}
export function closeTooltip (): void {
clearTimeout(toHandler)
storedValue = emptyTooltip
tooltipstore.set(emptyTooltip)
}