admin-on-rest
admin-on-rest copied to clipboard
AutocompleteInput text not shown on edit
Porting issue #1578 from react-admin, initially reported bynatrim.
after merging #1525 the AutocompleteInput searchText is sometimes not shown (mostly after moving mouse to address bar and reloading page by clicking in it and pressing enter)
managed to fix it by adding componentDidMount
componentDidMount() {
// delay this
window.setTimeout(() => {
this.setSearchText(this.props);
}, 100);
}
but that is probably not the best solution
(edit: using aor 1.4.0 with manually merged #1525 and react 0.16.2 )