File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
packages/kit/src/views/ChainSelector/components/EditableChainSelector Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ import {
2121import { usePrevious } from '@onekeyhq/kit/src/hooks/usePrevious' ;
2222import { ETranslations } from '@onekeyhq/shared/src/locale' ;
2323// import platformEnv from '@onekeyhq/shared/src/platformEnv';
24+ import platformEnv from '@onekeyhq/shared/src/platformEnv' ;
2425import type { IServerNetwork } from '@onekeyhq/shared/types' ;
2526
2627import { useFuseSearch } from '../../hooks/useFuseSearch' ;
@@ -353,6 +354,9 @@ export const EditableChainSelectorContent = ({
353354 }
354355 setSearchText ( text . trim ( ) ) ;
355356 } }
357+ { ...( ! platformEnv . isNative && {
358+ autoFocus : true ,
359+ } ) }
356360 />
357361 </ Stack >
358362 < Stack flex = { 1 } >
You can’t perform that action at this time.
0 commit comments