Skip to content

Commit

Permalink
Use value to set default in select tag
Browse files Browse the repository at this point in the history
  • Loading branch information
bclswl0827 committed Feb 12, 2024
1 parent 57a38e2 commit b51ac7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ export const Sidebar = (props: SidebarProps) => {
)}
<div className="sticky bottom-0 bg-slate-900 py-1 flex justify-center items-center text-xs text-gray-100 border-gray-400 border-t">
<select
defaultValue={currentLocale}
value={currentLocale}
className="text-gray-300/50 text-center bg-transparent w-full"
onChange={({ target }) => onSwitchLocale(target.value)}
>
Expand Down

0 comments on commit b51ac7d

Please sign in to comment.