From 6fd7e2208ee22f6f36187a60504272947e21df3e Mon Sep 17 00:00:00 2001 From: coji Date: Sat, 30 Mar 2024 14:18:23 +0900 Subject: [PATCH] fix: use currentTarget instead of target. --- guide/app/layout.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guide/app/layout.tsx b/guide/app/layout.tsx index a287336f..e52d2485 100644 --- a/guide/app/layout.tsx +++ b/guide/app/layout.tsx @@ -184,7 +184,7 @@ export function Guide({ className="bg-zinc-900 text-xs rounded-md py-1" defaultValue={language.code} onChange={(e) => { - const selectedLanguage = getLanguage(e.target.value); + const selectedLanguage = getLanguage(e.currentTarget.value); window.location.href = `//${selectedLanguage.domain}${location.pathname}${location.search}`; }} >