Skip to content

Commit 3985893

Browse files
fix(ui): revert unrelated code (#10897)
### What? Reverts mixed code written for #10825 that accidentally made it into #10888
1 parent c7ad46c commit 3985893

File tree

4 files changed

+0
-56
lines changed

4 files changed

+0
-56
lines changed

packages/ui/src/forms/Form/mergeServerFormState.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ export const mergeServerFormState = ({
3333

3434
if (acceptValues) {
3535
serverPropsToAccept.push('value')
36-
serverPropsToAccept.push('initialValue')
3736
}
3837

3938
let changed = false

test/fields/collections/Lexical/components/ClearState.tsx

Lines changed: 0 additions & 28 deletions
This file was deleted.

test/fields/collections/Lexical/e2e/main/e2e.spec.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -264,19 +264,6 @@ describe('lexicalMain', () => {
264264
})
265265
})
266266

267-
test('should be able to externally mutate editor state', async () => {
268-
await navigateToLexicalFields()
269-
const richTextField = page.locator('.rich-text-lexical').nth(1).locator('.editor-scroller') // first
270-
await expect(richTextField).toBeVisible()
271-
await richTextField.click() // Use click, because focus does not work
272-
await page.keyboard.type('some text')
273-
const spanInEditor = richTextField.locator('span').first()
274-
await expect(spanInEditor).toHaveText('some text')
275-
await saveDocAndAssert(page)
276-
await page.locator('#clear-lexical-lexicalSimple').click()
277-
await expect(spanInEditor).not.toBeAttached()
278-
})
279-
280267
test('should be able to bold text using floating select toolbar', async () => {
281268
await navigateToLexicalFields()
282269
const richTextField = page.locator('.rich-text-lexical').nth(2) // second

test/fields/collections/Lexical/index.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -317,20 +317,6 @@ export const LexicalFields: CollectionConfig = {
317317
],
318318
}),
319319
},
320-
{
321-
type: 'ui',
322-
name: 'clearLexicalState',
323-
admin: {
324-
components: {
325-
Field: {
326-
path: '/collections/Lexical/components/ClearState.js#ClearState',
327-
clientProps: {
328-
fieldName: 'lexicalSimple',
329-
},
330-
},
331-
},
332-
},
333-
},
334320
{
335321
name: 'lexicalWithBlocks',
336322
type: 'richText',

0 commit comments

Comments
 (0)