This is an automated email from the ASF dual-hosted git repository.

juzhiyuan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-website.git


The following commit(s) were added to refs/heads/master by this push:
     new 837c71b  fix: lang switch in docs (#975)
837c71b is described below

commit 837c71b89a1f802309354f12359fd7d7bb0e337d
Author: SkyeYoung <[email protected]>
AuthorDate: Tue Mar 29 10:44:06 2022 +0800

    fix: lang switch in docs (#975)
---
 website/src/clientModules/lang-redirect.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/website/src/clientModules/lang-redirect.js 
b/website/src/clientModules/lang-redirect.js
index 1a26867..b8bee83 100644
--- a/website/src/clientModules/lang-redirect.js
+++ b/website/src/clientModules/lang-redirect.js
@@ -85,7 +85,7 @@ import config from "../../docusaurus.config";
 
   function bindEventToLangSwitch() {
     // add click event to locale menu
-    const dropDowns = document.querySelectorAll("div.navbar__item.dropdown > 
ul");
+    const dropDowns = document.querySelectorAll("div.navbar__items > 
div.dropdown.dropdown--right > ul");
     dropDowns[dropDowns.length - 1].addEventListener(
       "click",
       function clickEvent(e) {

Reply via email to