Update web_src/js/modules/tippy.ts

Signed-off-by: wxiaoguang <wxiaoguang@gmail.com>
pull/35843/head
wxiaoguang 2025-12-03 09:55:04 +07:00 committed by GitHub
parent 66b20f97b8
commit d7648995db
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

@ -125,7 +125,7 @@ function switchTitleToTooltip(target: Element): void {
* The tippy by default uses "mouseenter" event to show, so we use "mouseover" event to switch to tippy
*/
function lazyTooltipOnMouseHover(this: HTMLElement, e: Event): void {
e.target?.removeEventListener('mouseover', lazyTooltipOnMouseHover, true);
(e.target as HTMLElement).removeEventListener('mouseover', lazyTooltipOnMouseHover, true);
attachTooltip(this);
}