react-component / m-list-view

ReactNative ListView Web Port
http://react-component.github.io/m-list-view/
85 stars 28 forks source link

fixed null ref. #22

Closed cexoso closed 6 years ago

cexoso commented 6 years ago

at react 15.6.2, ref will be called with params null. And this will Caused another branch render in PullToRefresh。

like: if (getScrollContainer()) { return renderRefresh(${prefixCls}-content ${prefixCls}-${direction}); } return ( <div ref={el => this.containerRef = el} className={classNames(className, prefixCls, ${prefixCls}-${direction})} {...restProps}

{renderRefresh(${prefixCls}-content)}

);

finally prevent pullDown in special case。