Skip to content

VIM - Strange behavior in VIM mode with Controlled Usage #37

Open
@edmondxiexie

Description

@edmondxiexie

The VIM mode has strange behavior when working with states. For example, when I press either 'o' or 'i' to enter insert mode, then press Backspace. It doesn't seem to allow me to delete previous characters before the insert position, which seems weird. And also, the cursor in insert mode will change from the line shape to the block shape after one insertion operation. Is it related to the rerendering when state changing? Because it does not happen in UnControlled Usage.

I use the OnClick function to change the state and use states for changing the value in the editor.

Preview:

  • I enter the edit mode and move cursor to the end of the line.
    screen shot 2017-11-30 at 12 02 09 pm

  • Then I press Backspace and the cursor change its shape and I cannot delete any more.
    screen shot 2017-11-30 at 12 02 54 pm

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions