Socket
Socket
Sign inDemoInstall

react-rnd

Package Overview
Dependencies
Maintainers
1
Versions
95
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 5.1.0 to 5.1.1

13

lib/index.js

@@ -50,3 +50,5 @@ 'use strict';

display: 'inline-block',
position: 'absolute'
position: 'absolute',
top: 0,
left: 0
};

@@ -96,2 +98,11 @@

}, {
key: 'componentDidMount',
value: function componentDidMount() {
var parent = this.wrapper.parentNode;
if (!parent || typeof window === 'undefined') return;
if (!(parent instanceof HTMLElement)) return;
if (getComputedStyle(parent).position !== 'static') return;
parent.style.position = 'relative';
}
}, {
key: 'onDragStart',

@@ -98,0 +109,0 @@ value: function onDragStart(e, data) {

2

package.json
{
"name": "react-rnd",
"license": "MIT",
"version": "5.1.0",
"version": "5.1.1",
"main": "lib/index.js",

@@ -6,0 +6,0 @@ "scripts": {

Sorry, the diff of this file is not supported yet

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