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:
@@ -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()
|
||||
|
||||
|
Reference in New Issue
Block a user