Skip to content

Commit 2f7c720

Browse files
committed
Merge pull request #2 from cnjon/patch-1
修复items变更后,长度没更新,导致无法向上滑动的问题!
2 parents dc2c242 + 2fc5527 commit 2f7c720

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ export default class PickerAndroid extends React.Component{
5050

5151
componentWillReceiveProps(nextProps){
5252
this.setState(this._stateFromProps(nextProps));
53+
this.length = this.state.items.length;
5354
}
5455

5556
_stateFromProps(props){

0 commit comments

Comments
 (0)