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

No cursor when content is empty #1177

Closed
Kasheftin opened this issue Jun 7, 2023 · 3 comments
Closed

No cursor when content is empty #1177

Kasheftin opened this issue Jun 7, 2023 · 3 comments

Comments

@Kasheftin
Copy link

Describe the issue

There's no blinking cursor when the content is empty & editor is focused.
There's something wrong with the .cm-cursor div height, it's zero.
Here's the trivial source code and the repro, https://github.com/Kasheftin/codemirror-no-cursor-bug.
It looks like a recent change somewhere, because I have several projects using codemirror, and everything is working fine there.
Codemirror v6.0.1.
vue-codemirror v6.1.1.

Browser and platform

Ubuntu, Chrome Version 113.0.5672.126 (Official Build) (64-bit)

Reproduction link

https://kasheftin.github.io/codemirror-no-cursor-bug/

@marijnh
Copy link
Member

marijnh commented Jun 8, 2023

The problem does not occur in a simple setup. Could this be related to the Vue wrapper?

@Kasheftin
Copy link
Author

I updated the demo, and it shows that the raw codemirror v6.0.1 works correctly.
Posted an issue there, surmon-china/vue-codemirror#201.

@Kasheftin
Copy link
Author

Thanks

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

2 participants