From 103a34d38c5ea9043d6db41c95bf79220c52fbdf Mon Sep 17 00:00:00 2001 From: Eric Arellano <14852634+Eric-Arellano@users.noreply.github.com> Date: Mon, 8 May 2023 13:07:16 -0600 Subject: [PATCH] Fix Previous Releases section not being clickable (#308) This bug caused the sidebar for Previous Releases to not be clickable on Rustworkx. (For some reason, it doesn't impact qiskit-metapackage) ![Screenshot 2023-05-08 at 12 59 24 PM](https://user-images.githubusercontent.com/14852634/236909294-eede5406-f8ad-40ec-b419-3d7bedbdcfe9.png) Co-authored-by: Abby Mitchell <23662430+javabster@users.noreply.github.com> --- qiskit_sphinx_theme/pytorch_base/sidebar.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qiskit_sphinx_theme/pytorch_base/sidebar.html b/qiskit_sphinx_theme/pytorch_base/sidebar.html index 8bb774dd..ac37b3bc 100644 --- a/qiskit_sphinx_theme/pytorch_base/sidebar.html +++ b/qiskit_sphinx_theme/pytorch_base/sidebar.html @@ -87,7 +87,7 @@ // expand and unexpand previous releases dropdown when clicked var release_rows = document.getElementsByClassName("sidebar-l1-expandable"); - for (i = 0; i < expandable_rows.length; i++) { + for (i = 0; i < release_rows.length; i++) { release_rows[i].addEventListener("click", function() { this.classList.toggle("open"); var clicked_subheadings = this.nextElementSibling;