facebookarchive/draft-js

Changing customStyleMap doesn’t trigger re-render until contentState is changed

Open

#999 opened on Feb 7, 2017

View on GitHub
 (15 comments) (4 reactions) (0 assignees)JavaScript (2,646 forks)batch import
enhancementhelp wanted

Repository metrics

Stars
 (22,554 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

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

What is the current behavior? After customStyleMap is changed, nothing happens until contentState is changed.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem..

Check it out here: https://jsfiddle.net/m6z0xn4r/125/

What is the expected behavior?

#52 suggests that this exact problem has been cleared up. Regression?? Or am I not understanding how to do the thing?

Which versions of Draft.js, and which browser / OS are affected by this issue? Did this work in previous versions of Draft.js? Latest, macOS, seems like all browsers. Dunno about previous versions.

Contributor guide