Draft-js: Re-render all content in Media Example when typing Japanese

Created on 23 Jun 2017  路  5Comments  路  Source: facebook/draft-js

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

What is the current behavior?
when typing japanese inside Media Example, if i input a video, they will be render again when instert a new line.
This bug is also happen when inserting a new Twitter or Instagram embed block. If a block contain an ajax request. You will see them re-render when typing japanese + press enter insert new block line.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. You can use this jsfiddle to get started: https://codepen.io/Kiwka/pen/rjpRzj/.

  • Please insert a video link (ex: http://www.html5videoplayer.net/videos/toystory.mp4)
  • Using Microsoft IME to input japanese.
  • Press enter to insert new block line.
    They will render again.

The example on codepen will not work properly. Please kindly check on another device with sample behavior above

What is the expected behavior?
It should not re-render content media block when typing japanese or chinese

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

Most helpful comment

Same issue when typing Chinese.

All 5 comments

Same issue when typing Chinese.

Same issue when typing Chinese. +1

is anyone can finger out how it could be solved?

@ghostrick could you merge your commit to the draft.js new version ?
i meet the same problem in the newest draft.js. 0.11.6

Same issue when typing Chinese. +1

Same issue when typing Chinese.+2

Was this page helpful?
0 / 5 - 0 ratings