Skip to content

Commit 2fc5527

Browse files
committed
修复items变更后,长度没更新,导致无法向上滑动的问题!
修复items变更后,长度没更新,导致无法向上滑动的问题!
1 parent dc2c242 commit 2fc5527

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)