ThemeSelector: okay but definitely use onChange, not onBlur
This commit is contained in:
parent
40dda8b274
commit
b62a2db8a5
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ const ThemeSelector: React.FC<IThemeSelector> = ({ value, onChange }) => {
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<select
|
<select
|
||||||
onBlur={handleChange}
|
onChange={handleChange}
|
||||||
defaultValue={value}
|
defaultValue={value}
|
||||||
className='focus:ring-indigo-500 focus:border-indigo-500 dark:bg-slate-800 dark:border-gray-600 block w-full pl-8 pr-12 sm:text-sm border-gray-300 rounded-md'
|
className='focus:ring-indigo-500 focus:border-indigo-500 dark:bg-slate-800 dark:border-gray-600 block w-full pl-8 pr-12 sm:text-sm border-gray-300 rounded-md'
|
||||||
>
|
>
|
||||||
|
|
Loading…
Reference in a new issue