dev_newshixunModel
hjm 6 years ago
parent 7ce3258d29
commit 84a452abe7

@ -80,7 +80,10 @@ class AddStudentModal extends Component{
} }
setVisible = (visible) => { setVisible = (visible) => {
if (visible) { if (visible) {
this.setState({school_name: this.props.user.user_school},()=>{ this.setState({
school_name: this.props.user.user_school,
name: undefined
},()=>{
this.fetchMemberList(); this.fetchMemberList();
}) })
this.fetchOptions() this.fetchOptions()
@ -88,7 +91,7 @@ class AddStudentModal extends Component{
this.refs.modalWrapper.setVisible(visible) this.refs.modalWrapper.setVisible(visible)
if (visible == false) { if (visible == false) {
this.setState({ this.setState({
checkBoxValues: [] checkBoxValues: [],
}) })
} }
} }

Loading…
Cancel
Save