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

Toolbar buttons activate/deactivate erratically after backspacing #107

Closed
apgsn opened this issue Nov 24, 2020 · 5 comments
Closed

Toolbar buttons activate/deactivate erratically after backspacing #107

apgsn opened this issue Nov 24, 2020 · 5 comments

Comments

@apgsn
Copy link

apgsn commented Nov 24, 2020

Toolbar buttons for text formatting seem to activate/deactivate in a sketchy way when backspace is used.
This issue can be easily reproduced in the example page following these steps:

  1. type some text
  2. press the bold button and type some more, the new text is bold
  3. press backspace until you delete all bold text and some plain text
  4. type some text: the text is not bold, but the bold button is still active.

At this point you have to press the bold button twice (or more) to deactivate it and fix its appearance. This happens on reverse too (same steps as before, but inverting plain and bold text), and for many other actions (set italic, underline, etc.).

@cibeleasreis
Copy link

Please see if this temp solution works for you: #101 (comment)

@apgsn
Copy link
Author

apgsn commented Dec 11, 2020

@cibeleasreis it didn't work, but thanks anyway.

@stulip
Copy link
Member

stulip commented Dec 15, 2020

@apgsn What you said should be that the toolbar is displayed abnormally because the format callback is not triggered. I will fix it as soon as possible.

@stulip
Copy link
Member

stulip commented Dec 15, 2020

@apgsn
Copy link
Author

apgsn commented Dec 15, 2020

@stulip thank you very much for your help. Can you make these updates available as a npm release? The current version is still 1.3.0.

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

3 participants