Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix rich text utils backspace not clearing the block type at the start.
Summary: **Summary** When backspacing at the start of the first block using rich text utils, the block type should be cleared. Example of me frantically trying to clear the first block type **without** this PR by pressing backspace at the beginning of the document: ![clear-first-block-type](https://cloud.githubusercontent.com/assets/424704/19821170/d3296d9a-9d11-11e6-990d-e2277bbfb833.gif) Followed by an example of me clearing the first block type **with** this PR: ![clear-first-block-type-working](https://cloud.githubusercontent.com/assets/424704/19821197/01b4826c-9d12-11e6-853b-32417ec93f10.gif) **Test Plan** - Pull master. - Open the rich text example. - Create a list. - Put your cursor at the first offset of the first block, backspace to reset the block type, notice that it doesn't work. - Pull this branch. - Open the rich text example. - Create a list. - Put your cursor at the first offset of the first block, backspace to reset the block type, rejoice in joy as the list item disappears. - Celebrate. 🎉 Closes facebookarchive/draft-js#748 Differential Revision: D6065808 fbshipit-source-id: d4b9028e255be1bdf405cf228cfd16c877872c95
- Loading branch information