How to disable auto focus in Syncfusion® React Document Editor component
1 Jul 20261 minute to read
React DOCX Editor (Document Editor) gets focused automatically when the page loads. If you want the Document editor not to be focused automatically it can be customized.
The following example illustrates to disable the auto focus in DocumentEditorContainer.
<DocumentEditorContainerComponent id="container" height={'590px'} enableAutoFocus={false} />Note: Default value of
enableAutoFocusproperty istrue.
The following example illustrates to disable the auto focus in DocumentEditor.
<DocumentEditorComponent id="container" height={'590px'} enableAutoFocus={false}/>Note: Default value of
enableAutoFocusproperty istrue.