darrenjennings / vue-autosuggest

🔍 Vue autosuggest component.
https://darrenjennings.github.io/vue-autosuggest
MIT License
621 stars 91 forks source link

Update README.md #235

Open voraczech opened 1 year ago

voraczech commented 1 year ago

What: Changing documentation appropriately - shouldRenderSuggestions (should-render-suggestions) does not return true if there is 0 results.

Why: shouldRenderSuggestions shows only if there is any result but not when 0

shouldRenderSuggestions: {
      type: Function,
      required: false,
      default: (totalResults, loading) => {
        return totalResults > 0 && !loading;
      }
},

How: changing docs (rather than code)

Checklist: