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

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

Open
viperfx opened this issue Oct 29, 2020 · 3 comments
Labels
bug Something isn't working

Comments

@viperfx
Copy link

viperfx commented Oct 29, 2020

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.

@viperfx viperfx added the bug Something isn't working label Oct 29, 2020
@viperfx viperfx changed the title Checkbox plugin When ticking a checkbox after editing the text on the line, most of the characters get deleted. Oct 29, 2020
@viperfx viperfx changed the title When ticking a checkbox after editing the text on the line, most of the characters get deleted. Checkbox plugin: editing the text on the line, most of the characters get deleted. Oct 29, 2020
@viperfx viperfx changed the title Checkbox plugin: editing the text on the line, most of the characters get deleted. Checkbox plugin: Editing the text on the line, most of the characters get deleted, after checkbox is ticked. Oct 29, 2020
@thibaudcolas
Copy link
Collaborator

Thank you @viperfx, I’ll have a look next week, this definitely used to work and I’m not too sure what might have changed.

@viperfx
Copy link
Author

viperfx commented Oct 29, 2020 via email

@viperfx
Copy link
Author

viperfx commented Nov 3, 2020

@thibaudcolas do you have any suggestions? for a short workaround.

I would really like to avoid this issue happening in production. It's affecting user experience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants