Skip to content

Commit

Permalink
fix(ui): revert unrelated code (#10897)
Browse files Browse the repository at this point in the history
### What?
Reverts mixed code written for #10825 that accidentally made it into
#10888
  • Loading branch information
JarrodMFlesch authored Jan 30, 2025
1 parent c7ad46c commit 3985893
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 56 deletions.
1 change: 0 additions & 1 deletion packages/ui/src/forms/Form/mergeServerFormState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ export const mergeServerFormState = ({

if (acceptValues) {
serverPropsToAccept.push('value')
serverPropsToAccept.push('initialValue')
}

let changed = false
Expand Down
28 changes: 0 additions & 28 deletions test/fields/collections/Lexical/components/ClearState.tsx

This file was deleted.

13 changes: 0 additions & 13 deletions test/fields/collections/Lexical/e2e/main/e2e.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,19 +264,6 @@ describe('lexicalMain', () => {
})
})

test('should be able to externally mutate editor state', async () => {
await navigateToLexicalFields()
const richTextField = page.locator('.rich-text-lexical').nth(1).locator('.editor-scroller') // first
await expect(richTextField).toBeVisible()
await richTextField.click() // Use click, because focus does not work
await page.keyboard.type('some text')
const spanInEditor = richTextField.locator('span').first()
await expect(spanInEditor).toHaveText('some text')
await saveDocAndAssert(page)
await page.locator('#clear-lexical-lexicalSimple').click()
await expect(spanInEditor).not.toBeAttached()
})

test('should be able to bold text using floating select toolbar', async () => {
await navigateToLexicalFields()
const richTextField = page.locator('.rich-text-lexical').nth(2) // second
Expand Down
14 changes: 0 additions & 14 deletions test/fields/collections/Lexical/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -317,20 +317,6 @@ export const LexicalFields: CollectionConfig = {
],
}),
},
{
type: 'ui',
name: 'clearLexicalState',
admin: {
components: {
Field: {
path: '/collections/Lexical/components/ClearState.js#ClearState',
clientProps: {
fieldName: 'lexicalSimple',
},
},
},
},
},
{
name: 'lexicalWithBlocks',
type: 'richText',
Expand Down

0 comments on commit 3985893

Please sign in to comment.