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

When placing the caret on an empty line, the caret is not visible #5815

Open
delijah opened this issue Mar 6, 2025 · 1 comment
Open

When placing the caret on an empty line, the caret is not visible #5815

delijah opened this issue Mar 6, 2025 · 1 comment
Labels

Comments

@delijah
Copy link
Contributor

delijah commented Mar 6, 2025

Description
When placing the caret on an empty line (press enter), the caret is not visible.

Recording
Image

Steps
To reproduce the behavior:

  1. Go to https://www.slatejs.org/examples/richtext
  2. Click on any line
  3. Press enter
  4. See error, there is no caret

Expectation
A clear and concise description of what you expected to happen. (Often it's helpful to test out the behavior of other editors like Google Docs, Medium, Notion, etc. to see how they handle the same issue.)

Environment

  • Slate Version: 0.112.0
  • Operating System: macOS 12.6.1
  • Browser: Chrome Version 133.0.6943.127 (Official Build) (arm64)
@delijah delijah added the bug label Mar 6, 2025
@delijah
Copy link
Contributor Author

delijah commented Mar 6, 2025

This could be solved by adding a min-width of 1px to text nodes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant