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

Clicking on the padding at the top of the editor returns the wrong position which prevents it from triggering a gap cursor #1435

Open
hollykurt opened this issue Dec 12, 2023 · 0 comments

Comments

@hollykurt
Copy link

Steps to Reproduce

Try: https://codesandbox.io/p/sandbox/tiptap-click-above-block-with-content-9lwqgg

  1. Just click above the padding at the top, it returns position 1, and no gap cursor appears.
  2. Click between the "WAT" nodes. it returns position 8, and no gap cursor appears.

You can see the resulting position for the click in the browser console.

This used to work in 1.30.0, try it again in: https://codesandbox.io/p/sandbox/tiptap-click-above-block-with-content-forked-yyf6gd

Where the only change is to pin to [email protected], and it will work.

This seems to be a regression in posFromCaret.

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

No branches or pull requests

1 participant