Skip to content
This repository has been archived by the owner on Sep 24, 2018. It is now read-only.

AutocompleteInput text not shown on edit #4

Open
fzaninotto opened this issue Apr 17, 2018 · 0 comments
Open

AutocompleteInput text not shown on edit #4

fzaninotto opened this issue Apr 17, 2018 · 0 comments
Labels
bug Something isn't working

Comments

@fzaninotto
Copy link
Member

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 )

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant