1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-30 10:29:48 +02:00

Fix/delete all closes keyboard (#5368)

* fix: clean up ref handling in leaf

* fix: delay rendering of placeholder to allow selections to settle

* fix: move placeholder height calculation into layout effect

* fix: add change set

* fix: handle placeholder resizing in a better way

* fix: fix placeholder integration test
This commit is contained in:
Ed Hager
2023-03-20 11:23:54 -05:00
committed by GitHub
parent 3c0abeb785
commit 5a0d3974d6
5 changed files with 101 additions and 59 deletions

View File

@@ -19,6 +19,8 @@ test.describe('placeholder example', () => {
const slateEditor = page.locator('[data-slate-editor=true]')
const placeholderElement = page.locator('[data-slate-placeholder=true]')
await expect(placeholderElement).toBeVisible()
const editorBoundingBox = await slateEditor.boundingBox()
const placeholderBoundingBox = await placeholderElement.boundingBox()