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.1 to 5.1.2

10

lib/index.js

@@ -99,2 +99,12 @@ 'use strict';

value: function componentDidMount() {
this.setParentPosition();
}
}, {
key: 'componentWillUpdate',
value: function componentWillUpdate() {
this.setParentPosition();
}
}, {
key: 'setParentPosition',
value: function setParentPosition() {
var parent = this.wrapper.parentNode;

@@ -101,0 +111,0 @@ if (!parent || typeof window === 'undefined') return;

2

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

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

@@ -422,2 +422,11 @@ <p align="center"><img src ="https://github.com/bokuweb/react-rnd/blob/master/logo.png?raw=true" /></p>

#### v5.1.2
- Add position `relative` when component will update.
#### v5.1.1
- Add `top: 0`, `left: 0`.
- Add position `relative` when parent position equals `static`.
#### v5.1.0

@@ -424,0 +433,0 @@

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