drag-drop-list-react
Advanced tools
Comparing version 0.20.0 to 0.21.0
@@ -120,2 +120,12 @@ 'use strict'; | ||
scrollDetails.step = Math.round(defaultScrollStep * this.props.scrollSpeed); | ||
if (typeof this.props.upperElem !== 'undefined') { | ||
this.upperElem = _react2.default.cloneElement(this.props.upperElem, { style: { position: 'sticky', top: 0 } }); | ||
} else { | ||
this.upperElem = null; | ||
} | ||
if (typeof this.props.bottomElem !== 'undefined') { | ||
this.bottomElem = _react2.default.cloneElement(this.props.bottomElem, { style: { position: 'sticky', bottom: 0 } }); | ||
} else { | ||
this.bottomElem = null; | ||
} | ||
} | ||
@@ -126,5 +136,4 @@ }, { | ||
var ans = { ref: this.addEvents }; | ||
if (typeof this.props.style !== 'undefined') { | ||
ans.style = _extends({}, this.props.style); | ||
} | ||
ans.style = typeof this.props.style !== 'undefined' ? _extends({}, this.props.style) : {}; | ||
ans.position = relative; | ||
if (typeof this.props.class !== 'undefined') { | ||
@@ -131,0 +140,0 @@ ans.class = this.props.class; |
{ | ||
"name": "drag-drop-list-react", | ||
"version": "0.20.0", | ||
"version": "0.21.0", | ||
"description": "A library that implements drag-drop lists for react.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
Sorry, the diff of this file is not supported yet
1576
230314