plate
plate copied to clipboard
insertTable doesn't put selection to the first cell
Description
After inserting a new table the focus or selection doesn't appear in the first cell. Line of code that is broken: https://github.com/udecode/plate/blob/main/packages/table/src/transforms/insertTable.ts#L58
Steps to Reproduce
- go to https://platejs.org/ or any example where the table button is present
- click on the insert button in the toolbar
- the editor is not focused, first cell is not focused
Sandbox
https://platejs.org/
Expected Behavior
First cell is selected after inserting the table
Environment
- slate:
- slate-react:
- browser: chrome
Bounty
Click here to add a bounty via Algora.
Funding
- You can sponsor this specific effort via a Polar.sh pledge below
- We receive the pledge once the issue is completed & verified
Hey first time here , it does select the first item it just doesnt show the first few items , but if we scroll down the tabel is shown below and it works fine .