Skip to content

Checkbox plugin: Editing the text on the line, most of the characters get deleted, after checkbox is ticked. #426

Description

@viperfx

Describe the bug

When ticking a checkbox after editing the text on the line, most of the characters get deleted.

Go to https://www.draftail.org/docs/plugins

  1. Type a line and press the checkbox icon. (all good and works as expected)
  2. Edit the line quickly, and tick the checkbox
    BUG: Some or most of the characters get deleted on the line.
  3. Edit the line, wait a second or two, and then tick the checkbox.
    BUG: Some or most of the characters get deleted on the line.

Which terms did you search for in the documentation and issue tracker?

I searched checkbox in this tracker and did not find any related items.

(Write your answer here if relevant.)

Environment

v1.3.0 - all browsers, including latest chrome.

Steps to reproduce

Go to https://www.draftail.org/docs/plugins

  1. Type a line and press the checkbox icon. (all good and works as expected)
  2. Edit the line quickly, and tick the checkbox
    BUG: Some or most of the characters get deleted on the line.
  3. Edit the line, wait a second or two, and then tick the checkbox.
    BUG: Some or most of the characters get deleted on the line.

Expected behavior

The characters on the edited line should not be modified. Only the checkbox state should be modified.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions