We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1978455 commit c6a964cCopy full SHA for c6a964c
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "react-resize-aware",
3
- "version": "1.0.6",
+ "version": "1.0.7",
4
"description": "A resize aware component used to detect sizes changes on your components",
5
"main": "dist/resizeAware.js",
6
"scripts": {
src/index.js
@@ -10,7 +10,7 @@ import { Component } from 'react'
10
11
export default class ResizeAware extends Component {
12
render() {
13
- let rootStyle = this.props.style
+ let rootStyle = this.props.style || {}
14
if (rootStyle.position === 'initial') {
15
rootStyle.position = 'relative'
16
}
0 commit comments