Skip to content

Commit

Permalink
Use value instead of defaultValue for language selector
Browse files Browse the repository at this point in the history
  • Loading branch information
nathandao committed May 25, 2020
1 parent 32acf1a commit 62117ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/frontend/main/Navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ const Navigation = ({ setMenuOpen }: MenuProps) => {
<LanguageSelector>
<label htmlFor="language-selector">{t('main:languageSelector')}</label>
<br />
<select id="language-selector" onChange={selectLanguage} defaultValue={i18n.language}>
<select id="language-selector" onChange={selectLanguage} value={i18n.language}>
<option value="fi">Suomi</option>
<option value="en">English</option>
</select>
Expand Down

0 comments on commit 62117ee

Please sign in to comment.