Skip to content

Releases: moroshko/react-autosuggest

v7.0.1

19 Oct 01:34
Compare
Choose a tag to compare

Fixed #268

v7.0.0

18 Oct 07:01
Compare
Choose a tag to compare

v6.1.0

13 Oct 03:16
Compare
Choose a tag to compare

v6.0.4

17 Sep 02:18
Compare
Choose a tag to compare

Fixed #246

v6.0.3

03 Sep 10:58
Compare
Choose a tag to compare

Fixed #234

v6.0.2

28 Aug 11:30
Compare
Choose a tag to compare

Fixed #230

v6.0.1

28 Aug 02:03
Compare
Choose a tag to compare

Fixed: onSuggestionsFetchRequested is called now on input focus only if shouldRenderSuggestions returns true

v6.0.0

27 Aug 12:23
Compare
Choose a tag to compare

Breaking change: onSuggestionsUpdateRequested was replaced with onSuggestionsFetchRequested and onSuggestionsClearRequested.

- onSuggestionsUpdateRequested = ({ value, reason }) => {
+ onSuggestionsFetchRequested = ({ value }) => {   // `reason` is not exposed anymore
    this.setState({
      suggestions: getSuggestions(value)
    });
  };

+ onSuggestionsClearRequested = () => {
+   this.setState({
+     suggestions: []
+   });
+ };

  <Autosuggest
-   onSuggestionsUpdateRequested={this.onSuggestionsUpdateRequested}
+   onSuggestionsFetchRequested={this.onSuggestionsUpdateRequested}
+   onSuggestionsClearRequested={this.onSuggestionsClearRequested}
    ...
  />

onSuggestionsFetchRequested is very similar to onSuggestionsUpdateRequested, except that it doesn't expose reason anymore.

onSuggestionsClearRequested must be specified (unless you set alwaysRenderSuggestions={true}), and all it has to do is to set suggestions to an empty array.

Fixed: #225, #226, #228

v5.1.2

25 Aug 04:18
Compare
Choose a tag to compare

Fixed #225

v5.1.1

24 Aug 10:12
Compare
Choose a tag to compare

Fixed issue with suggestions not being shown in certain circumstances