Skip to content

Comments

fix: richtext inline focus problem with sync-editor#1577

Open
Xtron33 wants to merge 1 commit intopuckeditor:mainfrom
Xtron33:fix/richtext-inline-focus-problem
Open

fix: richtext inline focus problem with sync-editor#1577
Xtron33 wants to merge 1 commit intopuckeditor:mainfrom
Xtron33:fix/richtext-inline-focus-problem

Conversation

@Xtron33
Copy link
Contributor

@Xtron33 Xtron33 commented Feb 20, 2026

Closes #1557

Description

This PR remove overengineering logic from Editor for checking focus.

Changes made

  • Delete focusName variable
  • Pass name to useSyncedEditor

Old logic make problem with first onChange call when app think what focus on not-inline editor, but call useSyncedEditor from inline editor cause onChange not work.

Using field-name for both work well.

How to test

  • Use inline richtext editor on Hero component.
recording_2026-02-20_19.00.18.mp4

@vercel
Copy link

vercel bot commented Feb 20, 2026

Someone is attempting to deploy a commit to the Puck Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Inline text formatting in RichText field doesn't call onChange

1 participant