Skip to content

The cursor jumps to the end of the content when using React Hook Form #91

Closed
@EduardTrutsyk

Description

@EduardTrutsyk

Describe the bug

When I try to use RichTextEditor with React Hook Form and change the form value via onUpdate prop with HTML format, the cursor jumps to the end of the content each time.

To Reproduce

Steps to reproduce the behavior:

  1. start typing

Expected behavior

The content should be updated, and the cursor should stay in the same position

Screenshots

Link to Reproduce

System (please complete the following information):

  • mui-tiptap version: [1.0.0-beta.9]
  • tiptap version: [2.0.3]
  • Browser: [Chrome]
  • Node version: [16.18.1]
  • OS: [macOS 13.4]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions