You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you are reporting an error please include a test case that demonstrates the issue you're reporting!
This is very helpful to maintainers in order to help us see the issue you're seeing.
FYI I am working on a refactor for Async that will invalidate this issue. (See PR #1226)
I plan to deprecate the minimunInput property. I believe it causes more complication than it's worth and is better handled by application logic. For example, you can enforce a similar behavior in a more customizable way in your application code like so:
letpreviousLoadPromisefunctionloadOptions(inputValue){if(inputValue&&inputValue.length>2){previousLoadPromise=fetch(...)// load new options based on inputValue}ellseif(!previouslyLoadedOptions){previousLoadPromise=fetch(...)// load initial / default options}// else return the previously-loaded options// this way, input text that's shorter than 2 chars won't reset options// if you wanted to reset options in this case, you could by adding an else:// previousLoadPromise = Promise.resolve()returnpreviousLoadPromise}
Thanks for using react-select!
If you are reporting an error please include a test case that demonstrates the issue you're reporting!
This is very helpful to maintainers in order to help us see the issue you're seeing.
Here is a Plunker you can fork that has react-select loaded and supports JSX syntax:
https://plnkr.co/edit/HTmtER9AMNcPoWhXV707?p=preview
You may also find the online Babel tool quite helpful if you wish to use ES6/ES7 syntax not yet supported by the browser you are using.
The text was updated successfully, but these errors were encountered: