Skip to content

[Bug][v3.31.1] iOS and Android that will break node views on enter #8348

Description

@xiaweiss

Affected Packages

core

Tiptap Version

3.31.1

Browser Used

Chrome

What happened?

When implementing a code block with NodeView, pressing enter to start a new line on mobile produces an extra blank line, and the content entered after the line break is lost.

Image

Insert a line break after the end of the first line of code.

Image

Expected Behavior

It behaves normally when using a PC, or after downgrading to version 3.31.0.

Image

Reproducible Example URL (Optional)

https://github.com/xiaweiss/tiptap-bug-report

Additional Context (Optional)

The relevant change is in NodeView.ts, line 297. issue #8220

this.contentDOM.contains(mutation.target) &&

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: coreCore editor engine and ProseMirror integrationarea: editorEditor behavior, commands, and transactionscomplexity: hardMultiple components, research neededimpact: mediumAffects some users or workflowsstatus: triageNeeds initial review and categorization

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions