draft-js-undo-plugin
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -8,2 +8,6 @@ # Change Log | ||
### 2.0.2 | ||
- button not working while it's in the same container with editor [#1139](https://github.com/draft-js-plugins/draft-js-plugins/issues/1139) | ||
### Fixed | ||
@@ -10,0 +14,0 @@ |
@@ -45,3 +45,4 @@ 'use strict'; | ||
return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = RedoButton.__proto__ || Object.getPrototypeOf(RedoButton)).call.apply(_ref, [this].concat(args))), _this), _this.onClick = function () { | ||
return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = RedoButton.__proto__ || Object.getPrototypeOf(RedoButton)).call.apply(_ref, [this].concat(args))), _this), _this.onClick = function (event) { | ||
event.stopPropagation(); | ||
_this.props.store.setEditorState(_draftJs.EditorState.redo(_this.props.store.getEditorState())); | ||
@@ -48,0 +49,0 @@ }, _temp), _possibleConstructorReturn(_this, _ret); |
@@ -45,3 +45,4 @@ 'use strict'; | ||
return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = UndoButton.__proto__ || Object.getPrototypeOf(UndoButton)).call.apply(_ref, [this].concat(args))), _this), _this.onClick = function () { | ||
return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = UndoButton.__proto__ || Object.getPrototypeOf(UndoButton)).call.apply(_ref, [this].concat(args))), _this), _this.onClick = function (event) { | ||
event.stopPropagation(); | ||
_this.props.store.setEditorState(_draftJs.EditorState.undo(_this.props.store.getEditorState())); | ||
@@ -48,0 +49,0 @@ }, _temp), _possibleConstructorReturn(_this, _ret); |
{ | ||
"name": "draft-js-undo-plugin", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Undo Plugin for DraftJS", | ||
@@ -5,0 +5,0 @@ "author": { |
200
15087
9