Socket
Socket
Sign inDemoInstall

react-rnd

Package Overview
Dependencies
Maintainers
1
Versions
96
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-rnd - npm Package Compare versions

Comparing version 4.0.1 to 4.1.0

9

lib/index.js

@@ -44,3 +44,3 @@ 'use strict';

var _this = _possibleConstructorReturn(this, Object.getPrototypeOf(ReactRnd).call(this, props));
var _this = _possibleConstructorReturn(this, (ReactRnd.__proto__ || Object.getPrototypeOf(ReactRnd)).call(this, props));

@@ -84,3 +84,6 @@ _this.state = {

}
this.props.onResize(dir, styleSize, clientSize, delta);
this.props.onResize(dir, styleSize, clientSize, delta, {
x: this.state.x,
y: this.state.y
});
}

@@ -178,3 +181,3 @@ }, {

'div',
{ style: _extends({}, boxStyle, { zIndex: zIndex }) },
{ style: _extends(boxStyle, { zIndex: zIndex }) },
_react2.default.createElement(

@@ -181,0 +184,0 @@ _reactResizableBox2.default,

{
"name": "react-rnd",
"version": "4.0.1",
"version": "4.1.0",
"description": "Resizable and draggable component for React.",

@@ -66,2 +66,3 @@ "main": "lib/index.js",

"react-addons-test-utils": "^15.0.1",
"react-dom": "^15.3.2",
"sinon": "^1.17.3",

@@ -68,0 +69,0 @@ "watchify": "^3.7.0"

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc