npm draft-js 0.10.4
v0.10.4

latest releases: 0.11.7, 0.11.6, 0.11.5...
6 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(n^2) 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)

Don't miss a new draft-js release

NewReleases is sending notifications on new releases.