Skip to content

Commit c6a964c

Browse files
committed
fixed bug
1 parent 1978455 commit c6a964c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-resize-aware",
3-
"version": "1.0.6",
3+
"version": "1.0.7",
44
"description": "A resize aware component used to detect sizes changes on your components",
55
"main": "dist/resizeAware.js",
66
"scripts": {

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { Component } from 'react'
1010

1111
export default class ResizeAware extends Component {
1212
render() {
13-
let rootStyle = this.props.style
13+
let rootStyle = this.props.style || {}
1414
if (rootStyle.position === 'initial') {
1515
rootStyle.position = 'relative'
1616
}

0 commit comments

Comments
 (0)