mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
feat: Add prop autoFocus
to set focus on the Excalidraw component (#3691)
* feat: Add prop autofocus to set focus on Excalidraw component * Update PR number * Make requested changes * Add note * Update src/packages/excalidraw/CHANGELOG.md Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com> * Update src/tests/excalidrawPackage.test.tsx Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com> * Remove duplicate sentence * Indent note * autofocus -> autoFocus Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
This commit is contained in:
parent
15f02ba191
commit
4249de41d4
7 changed files with 34 additions and 1 deletions
|
@ -453,6 +453,7 @@ const ExcalidrawWrapper = () => {
|
|||
detectScroll={false}
|
||||
handleKeyboardGlobally={true}
|
||||
onLibraryChange={onLibraryChange}
|
||||
autoFocus={true}
|
||||
/>
|
||||
{excalidrawAPI && <CollabWrapper excalidrawAPI={excalidrawAPI} />}
|
||||
{errorMessage && (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue