在线观看不卡亚洲电影_亚洲妓女99综合网_91青青青亚洲娱乐在线观看_日韩无码高清综合久久

鍍金池/ 問答/HTML/ 在關(guān)閉彈窗清空AutoComplete里inout的值時(shí),AutoComplet

在關(guān)閉彈窗清空AutoComplete里inout的值時(shí),AutoComplete的下拉依然會(huì)顯示出來,如何影藏下拉值

<AutoComplete
              style={{ width: 300 }}
              dataSource={defArray}
              onChange={this.handleAccountChange}
              value={this.state.uiAccount}
              filterOption={(inputValue, option) => option.props.children.toUpperCase().indexOf(inputValue.toUpperCase()) !== -1
              }
/>
//彈窗關(guān)閉事件
  handleCancel = (e) => {
    this.setState({
      visible: false,
      uiAccount:"",
    });

  }
//AutoComplete handleAccountChange
  handleAccountChange(event) {
    this.setState({ uiAccount: event });
  }
回答
編輯回答
柒槿年

設(shè)置visible為false唄

2017年8月28日 14:34