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 to set cursor before first character in ContentEditable element inserts rogue character and loses focus #49

Open
AndyGCook opened this issue Mar 30, 2016 · 0 comments

Comments

@AndyGCook
Copy link

There seems to be a bug when clicking directly before the first character in a ContentEditable element. After the click, the ContentEditable cursor disappears and a rogue character is inserted into the editor.

I think this has to do with trying to detach the shadow cursor in EditableCaret.prototype.getOffset method.

I'm trying to debug it and will roll in a patch if I can figure it out... just thought I'd add it as an issue here in case it's an easy fix that I'm missing.

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