我尝试在Material UI中使用autosuggest。我在componentDidMount方法中设置了自己的数据。placeHolder="Search the data " data={this.state.options} onSelect={this.handleSuggestionSelected}/> 我使用的是https://material-ui.com/demos/autocomplete/中的react-auto
如何在更改另一个字段的值时清除物料界面自动完成TextField中的多芯片。在下面的示例中,每当Type值发生更改时,我都会尝试清除子类型值。我可以根据Type字段中更改的值更新下拉选项。mui chips not gettig reset, on changing Type drop-down value 问题可在以下代码和框链接中重现:https://codesandbox.io/s