Comparing version 5.1.0 to 5.1.1
@@ -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) { |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
96753
1071