plate
plate copied to clipboard
Passing autofocus as an Editable prop results in a focus event but no cursor
Description
Passing autofocus as an Editable prop results in a focus event but no cursor
Steps
- Use autoFocus as a prop
- no focus
Sandbox
https://codesandbox.io/s/dbgrman-plate-playground-forked-vozips?file=/index.tsx
Expectation
Focus with cursor
Environment
- slate: 0.78.0
- slate-react:
- browser: chrome & safari
Funding
- You can sponsor this specific effort via a Polar.sh pledge below
- We receive the pledge once the issue is completed & verified
I just encountered the same bug. Autofocus does not seem to work.
Workaround: https://codesandbox.io/s/sandpack-project-forked-ln6xsm?file=/App.tsx
Looks to work in v19
This doesn't seem to work in nested editors though.
any updates on this? The work around really doesn't gel with nested editors.