Skip to content
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.

MUTABLE entity no longer work when adding character #1798

Closed
phuczeero opened this issue Jun 25, 2018 · 3 comments
Closed

MUTABLE entity no longer work when adding character #1798

phuczeero opened this issue Jun 25, 2018 · 3 comments

Comments

@phuczeero
Copy link

Do you want to request a feature or report a bug?
> Bug

What is the current behavior?
> Edit a word (MUTABLE entity) by adding a character, the character no longer annotated by the entity.

What is the expected behavior?
> The added character annotated by the entity.

Which versions of Draft.js, and which browser / OS are affected by this issue? Did this work in previous versions of Draft.js?

  • Version: 0.10.5, 0.10.4
  • Browser: Chrome on Windows.

**Version 0.10.3 work correctly.

@thibaudcolas
Copy link
Contributor

@phuczeero this is intentional, and was released in v0.10.5.

See #430 (comment)

@thibaudcolas
Copy link
Contributor

There is no configuration, you need to add some code to re-establish that behavior for your project. I believe the issue I linked has some examples in the comments, via handleBeforeInput.

@phuczeero
Copy link
Author

@thibaudcolas Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants