Preserve other props

master v1.0.6
Vitaliy Filippov 2019-04-22 20:04:58 +03:00
parent 68693f3312
commit 1aca4ba455
2 changed files with 7 additions and 1 deletions

View File

@ -56,7 +56,13 @@ export class VirtualScrollList extends React.Component
this.state.scrollTo = this.getItemScrollPos();
this.state.scrollTimes = 2;
}
const props = { ...this.props };
for (const k in VirtualScrollList.propTypes)
{
delete props[k];
}
return (<div
{...props}
className={this.props.className}
style={{
position: 'relative',

View File

@ -1,6 +1,6 @@
{
"name": "dynamic-virtual-scroll",
"version": "1.0.5",
"version": "1.0.6",
"author": {
"name": "Vitaliy Filippov",
"email": "vitalif@yourcmc.ru",