sickdyd/react-search-autocomplete

Setting the maxlength on the autocomplete input

Closed this issue · 2 comments

Would it be possible to set the maxlength property on the html input element?
This would be useful for to prevent user to type too many characters when the application would want to get the free entered text by the user as data to be saved. This would eliminate the need to have a maxlength validation

@hadrian625 Feature added in the latest version!

Forgot to update the docs: use the prop maxLength to define the max length of the input