facebookarchive/draft-js

EditorState.set() Selection Handling

Open

#1,161 建立於 2017年4月22日

在 GitHub 查看
 (1 留言) (0 反應) (0 負責人)JavaScript (2,646 fork)batch import
documentationhelp wanted

倉庫指標

Star
 (22,554 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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

Bug (or documentation issue)

What is the current behavior?

EditorState.set() doesn't handle selection.

Steps to reproduce: https://jsfiddle.net/7bsqzmfg/10/

What is the expected behavior?

Either EditorState.set() should handle selection or we should mention that it is not supposed to handle selection on the docs.

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

Draft.js 0.10.0 Google Chrome 57.0.2987.133 macOS Sierra 10.12.3 (16D32)

貢獻者指南