Skip to content

Commit cb572cb

Browse files
committed
typecheck tooltipBlurHandler
1 parent dfec2bb commit cb572cb

File tree

1 file changed

+3
-1
lines changed
  • src/librustdoc/html/static/js

1 file changed

+3
-1
lines changed

src/librustdoc/html/static/js/main.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1461,7 +1461,9 @@ function preLoadCss(cssUrl) {
14611461
}
14621462
}
14631463

1464-
// @ts-expect-error
1464+
/**
1465+
* @param {Event & { relatedTarget: Node }} event
1466+
*/
14651467
function tooltipBlurHandler(event) {
14661468
if (window.CURRENT_TOOLTIP_ELEMENT &&
14671469
!window.CURRENT_TOOLTIP_ELEMENT.contains(document.activeElement) &&

0 commit comments

Comments
 (0)