Socket
Socket
Sign inDemoInstall

draft-js-undo-plugin

Package Overview
Dependencies
25
Maintainers
2
Versions
29
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.1 to 2.0.2

4

CHANGELOG.md

@@ -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 @@

3

lib/RedoButton/index.js

@@ -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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc