Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Heading node type errors when inserting newline at the beginning #1411

Closed
jamesopti opened this issue Jun 3, 2021 · 1 comment
Closed

Heading node type errors when inserting newline at the beginning #1411

jamesopti opened this issue Jun 3, 2021 · 1 comment
Labels
Type: Bug The issue or pullrequest is related to a bug

Comments

@jamesopti
Copy link

Description
When a Heading node is positioned in the middle/end of a document, pressing Enter at the beginning of it's line causes an error.

Screen Shot 2021-06-03 at 1 37 10 PM

Steps to reproduce the bug
Steps to reproduce the behavior:

  1. Go to https://codesandbox.io/s/simplest-tiptap-issue-knscq?file=/src/App.tsx
  2. Put your cursor at the beginning of Heading
  3. Hit enter twice
  4. See error message

Expected behavior
The Heading content is moved down.

Additional context
We noticed this issue with StarterKit v70 as well.

@philippkuehn
Copy link
Contributor

It seems like this is an issue with ProseMirror itself. Created an issue there: ProseMirror/prosemirror#1179

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug The issue or pullrequest is related to a bug
Projects
None yet
Development

No branches or pull requests

2 participants