Closed zichaolim closed 8 years ago
Dropdown style={{ height: 20, width: 300,marginTop:5}} values={this.state.countryList} onChange={this.onChangeCountry.bind(this)} selected={this.state.selectedCountryNumber}
Dropdown style={{ height: 20, width: 300,marginTop:5}} values={this.state.clubList} onChange={this.onChangeClubList.bind(this)} selected={0}
I got two dropdown and after I select another value of the country dropdown, I do the following action:
setState({clubList: change some array items });
but then the items of dropdown for clublist are still the same with previous items, no change. How to make it change?
surprisingly, it works now!
Dropdown style={{ height: 20, width: 300,marginTop:5}} values={this.state.countryList} onChange={this.onChangeCountry.bind(this)} selected={this.state.selectedCountryNumber}
Dropdown style={{ height: 20, width: 300,marginTop:5}} values={this.state.clubList} onChange={this.onChangeClubList.bind(this)} selected={0}
I got two dropdown and after I select another value of the country dropdown, I do the following action:
setState({clubList: change some array items });
but then the items of dropdown for clublist are still the same with previous items, no change. How to make it change?