Skip to content

Commit

Permalink
fix: use currentTarget instead of target.
Browse files Browse the repository at this point in the history
  • Loading branch information
coji committed Mar 30, 2024
1 parent 82884dd commit e68f0cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guide/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}`;
}}
>
Expand Down

0 comments on commit e68f0cf

Please sign in to comment.