React-autosuggest: Autowhatever require specific props ??

Created on 26 Apr 2020  路  6Comments  路  Source: moroshko/react-autosuggest

Are you reporting a bug?

Don't know, but seems like an odd behavior

I've not set multiSection={true}
My code look like this :
<Autosuggest suggestions={suggestions} onSuggestionsFetchRequested={onSuggestionsFetchRequested} onSuggestionsClearRequested={onSuggestionsClearRequested} getSuggestionValue={this.getSuggestionValue} renderSuggestion={renderSuggestion} onSuggestionSelected={this.onSuggestionSelected} inputProps={inputProps} />

But in the console i have those 2 messages, but i don't need multiSection and even if i set multiSection={false} the error is still the same

image

bug

Most helpful comment

Working on it.

All 6 comments

Same issue recently needs to be fixed please

Working on it.

As a workaround @thomaslc66, adding "empty" functions on renderSectionTitle and getSectionSuggestions props did the trick for me.

<Autosuggest
  ...
  renderSectionTitle={() => {}}
  getSectionSuggestions={() => {}}
/>

tpenaranda's suggestion didn't fix the issue. Even if I put multiSection={false}. No luck. Downgrading to "react-autosuggest": "^9.4.3" fixes the issue for now.
Thanks for contributing @aberezkin.

@tpenaranda Solution worked also, empty functions are the way to go to solve this for now

Fixed in v10.0.2

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AlgoTrader picture AlgoTrader  路  3Comments

Razinsky picture Razinsky  路  3Comments

cristian-sima picture cristian-sima  路  3Comments

marcselman picture marcselman  路  3Comments

mkaemmerer picture mkaemmerer  路  3Comments