From 8b52275ee34c829a29bbb677fffd7da48d242616 Mon Sep 17 00:00:00 2001 From: Michael Howell Date: Mon, 8 Jan 2024 09:27:52 -0700 Subject: rustdoc: hide modals when resizing the sidebar Follow-up for https://github.com/rust-lang/rust/pull/119477#discussion_r1439085011 --- src/librustdoc/html/static/js/main.js | 1 + 1 file changed, 1 insertion(+) (limited to 'src/librustdoc/html/static') 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); -- cgit 1.4.1-3-g733a5