Problems with Autocomplete in 2.0.0-beta.1

UI Components for React
Post Reply
mrlee
Posts: 3
Joined: 10 Dec 2018, 12:26

10 Dec 2018, 12:30

I am having a weird issue where Autocomplete will not refresh the input on render.
return
<div>
<AutoComplete value={this.state.Value} onChange={(e) => { this.setState({ Value: e.value }) }}
onBlur={this.updateValue} onFocus={this.toggleOSK} dropdown={true}
suggestions={this.state.ACSuggestions} completeMethod={this.AutoCompleteSuggestFilter}
/>
{this.state.Value}
</div>;

Above is my jsx. I would expect the autocomplete input value to always match the text output. But that is only the case 50% of the time.
As anyone else seen this?posting.php?mode=post&f=57

merve7
Posts: 861
Joined: 12 Sep 2017, 10:44

12 Dec 2018, 10:48

Did you mean this issue (https://github.com/primefaces/primereact/issues/576)? Please, could you try with the new version? If the problem still exists, please write again.

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 20 guests