Skip to content

Autosave Causes Cursor to Jump #13

Open
@ydax

Description

@ydax

Hey Luke
I'm not sure whether this is an "issue" or not with this library, but this was the best place I could find to bring this up.
We're using this library as a compliment to the TinyMCE WYSIWYG editor and I'm finding a problem. It's that, on autosave, the cursor jumps to the beginning of the editor. So, you can imagine that it's really frustrating for our users who are typing, then get an autosave, then have their cursor jump to the beginning of what they were writing.
Have you experienced this kind of behavior when using the library? Do you reckon this is an issue that could be improved in the library--maybe as a feature / prop--or something that should be handled in our App instead? I can't really think of a way where we would keep the cursor position in state or anything like that in our App.
Basically, the autosave causes the React component to re-render I reckon, which then causes the cursor to jump back to the default position.
Kind regards,
Davis

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions