以下を使用するAutocompleteフィールドがあります。
searchText = {this.state.searchText}
このような;
<AutoComplete
floatingLabelText='agent input'
ref='agentInput'
hintText="type response"
multiLine = {true}
fullWidth = {true}
searchText = {this.state.searchText}
onNewRequest={this.sendAgentInput}
dataSource={this.agentCommands}
/>
しかし、更新するthis.setState({searchText: null })
と、autoComplete は 1 回クリアされますが、2 回目はクリアされません。
これがバグなのか、フィールドをリセットする別の方法があるのか はわかりません。
また、フィールドを探して a を追加しようとしましたrefが、うまくいきませんでした。
バグの場合はここに提出 https://github.com/calleall/material-ui/issues/2615