We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f5efd2a commit ab180c2Copy full SHA for ab180c2
src/librustdoc/html/static/js/main.js
@@ -538,8 +538,8 @@ function preLoadCss(cssUrl) {
538
return;
539
}
540
541
- // @ts-expect-error
542
- if (document.activeElement.tagName === "INPUT" &&
+ if (document.activeElement &&
+ document.activeElement.tagName === "INPUT" &&
543
// @ts-expect-error
544
document.activeElement.type !== "checkbox" &&
545
0 commit comments