draft-js v0.10.4 Release Notes

Release Date: 2017-10-24 // over 2 years ago
  • ➕ Added

    • 🔦 Expose onRightArrow and onLeftArrow props to allow handling keyboard events when right or left arrow is pressed. (@eessex in #1384)
    • 🔦 Expose Draft.css as default CSS export in package.json for use by CSS preprocessors. (@darobin in #566)

    🔄 Changed

    • 🐎 Change 'lookUpwardForInlineStyle' from O(n2) to O(n), improving performance. :) (@Lemmih in #1429)

    🛠 Fixed

    • 🛠 Fix bug where editors inside draggable parent were broken for Safari. (@mattkrick in #1326)
    • Stop pulling in Enzyme as production dependency. D'oh. (@flarnie in #1415)
    • 🛠 Fix TypeError: Cannot read property 'nodeType' of undefined error where anchorNode was undefined. (@tleunen in #1407)
    • 🛠 Fix error thrown when callback tries to focus on editor after it has been unmounted. (@mattkrick in #1409)
    • 🛠 Fix bug where selecting a single character then typing it doesn't replace it. (@karanjthakkar in #719)
    • Clear the block type when backspacing at the start of the first block with rich text utils. (@jvaill in #748)