admin-on-rest icon indicating copy to clipboard operation
admin-on-rest copied to clipboard

AutocompleteInput text not shown on edit

Open fzaninotto opened this issue 6 years ago • 0 comments

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 )

fzaninotto avatar Apr 17 '18 14:04 fzaninotto