about summary refs log tree commit diff
path: root/src/librustdoc/html/static/js
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2024-01-08 09:27:52 -0700
committerMichael Howell <michael@notriddle.com>2024-01-08 09:54:05 -0700
commit8b52275ee34c829a29bbb677fffd7da48d242616 (patch)
tree372b34a1ffbdec6e5d00e13d60ab6929cd0519c8 /src/librustdoc/html/static/js
parent0ee9cfd54db7b5f4be35f026588904500c866196 (diff)
downloadrust-8b52275ee34c829a29bbb677fffd7da48d242616.tar.gz
rust-8b52275ee34c829a29bbb677fffd7da48d242616.zip
rustdoc: hide modals when resizing the sidebar
Follow-up for
https://github.com/rust-lang/rust/pull/119477#discussion_r1439085011
Diffstat (limited to 'src/librustdoc/html/static/js')
-rw-r--r--src/librustdoc/html/static/js/main.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/librustdoc/html/static/js/main.js b/src/librustdoc/html/static/js/main.js
index 88901191cda..b46701b55ea 100644
--- a/src/librustdoc/html/static/js/main.js
+++ b/src/librustdoc/html/static/js/main.js
@@ -1721,6 +1721,7 @@ href="https://doc.rust-lang.org/${channel}/rustdoc/read-documentation/search.htm
             }
             currentPointerId = e.pointerId;
         }
+        window.hideAllModals(false);
         e.preventDefault();
         window.addEventListener("pointermove", resize, false);
         window.addEventListener("pointercancel", stopResize, false);