draft-js-drag-n-drop-plugin
Advanced tools
Comparing version 2.0.0-rc8 to 2.0.0-rc9
@@ -6,4 +6,5 @@ # Change Log | ||
## To Be Released | ||
## 2.0.0-rc9 | ||
- add null-check to fix bug where store is not defined when decorator is rendered. | ||
### Released the first working version of DraftJS DnD Plugin |
@@ -65,3 +65,5 @@ 'use strict'; | ||
value: function render() { | ||
var readOnly = store.getReadOnly(); | ||
// If this is rendered before the store is initialized default to read only | ||
// NOTE(@mxstbr): Reference issue: draft-js-plugins/draft-js-plugins#926 | ||
var readOnly = store.getReadOnly ? store.getReadOnly() : true; | ||
return _react2.default.createElement(WrappedComponent, _extends({}, this.props, { | ||
@@ -68,0 +70,0 @@ onDragStart: !readOnly ? this.startDrag : undefined |
{ | ||
"name": "draft-js-drag-n-drop-plugin", | ||
"version": "2.0.0-rc8", | ||
"version": "2.0.0-rc9", | ||
"description": "Block Drag & Drop Plugin for DraftJS", | ||
@@ -5,0 +5,0 @@ "author": { |
16117
238