We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Now we can different messages between Select2 and react-select components. We should unify messages for the react autocomplete field as follow
Nothing found. Please modify your search criteria.
Loading failed.
Searching...
Please enter {n} or more characters.
I suggest the following implementation for the case with min autocomplete chars
static propTypes = { minAutocompleChars: PropTypes.number }; static defaultProps = { minAutocompleChars: 0 }; getOptions = (atocompleteChars, callback) => { const { autocompleteAction, minAutocompleChars } = this.props; if (atocompleteChars.length >= minAutocompleChars) { autocompleteAction(atocompleteChars).then((result) => { setState({loadingError: false}) callback(result) }).catch((anError) { setState({loadingError: true}) }); } else { setState({loadingError: false}) callback([options: [], "complete": false]) } }; render() { const {minAutocompleChars} = this.props; ... noOptionsMessage: ({inputValue: atocompleteChars}) => { if (loadingError) { return <div class="error">Loading failed</div> } if (atocompleteChars.length >= minAutocompleChars) { return "Please enter {minAutocompleChars} or more characters" } else { return "No matches found" } }, .... }
NOTES: After these changes, we should update autocomplete fields in the following grails plugins
Original issue: https://opuscapita.atlassian.net/browse/EPROC-20250
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
Now we can different messages between Select2 and react-select components.
We should unify messages for the react autocomplete field as follow
Nothing found. Please modify your search criteria.
Loading failed.
Searching...
Please enter {n} or more characters.
I suggest the following implementation for the case with min autocomplete chars
NOTES: After these changes, we should update autocomplete fields in the following grails plugins
Original issue: https://opuscapita.atlassian.net/browse/EPROC-20250
The text was updated successfully, but these errors were encountered: