diff --git a/packages/ketcher-react/src/script/ui/views/modal/components/document/Open/Open.tsx b/packages/ketcher-react/src/script/ui/views/modal/components/document/Open/Open.tsx index c206a5e571..e3ff3fa4f1 100644 --- a/packages/ketcher-react/src/script/ui/views/modal/components/document/Open/Open.tsx +++ b/packages/ketcher-react/src/script/ui/views/modal/components/document/Open/Open.tsx @@ -158,6 +158,7 @@ const Open: FC = (props) => { isRecognizeDisabled={isRecognizeDisabled} structStr={structStr} inputHandler={setStructStr} + autoFocus /> ) diff --git a/packages/ketcher-react/src/script/ui/views/modal/components/document/Open/components/TextEditor.tsx b/packages/ketcher-react/src/script/ui/views/modal/components/document/Open/components/TextEditor.tsx index d671d706de..43ac9054fb 100644 --- a/packages/ketcher-react/src/script/ui/views/modal/components/document/Open/components/TextEditor.tsx +++ b/packages/ketcher-react/src/script/ui/views/modal/components/document/Open/components/TextEditor.tsx @@ -19,15 +19,21 @@ import classes from '../Open.module.less' export type TextEditorProps = { structStr: string inputHandler: (str: string) => void + autoFocus?: boolean } -export const TextEditor = ({ structStr, inputHandler }: TextEditorProps) => { +export const TextEditor = ({ + structStr, + inputHandler, + autoFocus = false +}: TextEditorProps) => { return ( <>