]> git.lizzy.rs Git - rust.git/commitdiff
Don't focus on notable trait parent when hiding it
authorGuillaume Gomez <guillaume.gomez@huawei.com>
Fri, 18 Nov 2022 12:36:18 +0000 (13:36 +0100)
committerGuillaume Gomez <guillaume.gomez@huawei.com>
Fri, 18 Nov 2022 12:36:18 +0000 (13:36 +0100)
src/librustdoc/html/static/js/main.js

index 874f130d7e23c92c4ff3c4b3ab8fbe0d09899fdf..67eff9497e12104fe2f2d253279783a6486db5a4 100644 (file)
@@ -910,7 +910,6 @@ function loadCss(cssUrl) {
     function hideNotable() {
         if (window.CURRENT_NOTABLE_ELEMENT) {
             if (window.CURRENT_NOTABLE_ELEMENT.NOTABLE_BASE.NOTABLE_FORCE_VISIBLE) {
-                window.CURRENT_NOTABLE_ELEMENT.NOTABLE_BASE.focus();
                 window.CURRENT_NOTABLE_ELEMENT.NOTABLE_BASE.NOTABLE_FORCE_VISIBLE = false;
             }
             const body = document.getElementsByTagName("body")[0];