MaxLength on Text Input #895
Answered
by
sarahdayan
ajgray2017
asked this question in
Q&A
-
Hello, Looking to max out the input length of my query. Looking through the source I see it mentioned a few places, but I don't see any options to override that value. Is this a possibility? |
Beta Was this translation helpful? Give feedback.
Answered by
sarahdayan
Feb 12, 2022
Replies: 1 comment 1 reply
-
Hey @ajgray2017! The May I ask what is your use case? Are you willing to use Autocomplete with another API than Algolia? |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
sarahdayan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @ajgray2017!
The
maxlength
of512
is designed to comply with the query length limit of Algolia's Search API. It isn't configurable if you're usingautocomplete-js
, only if you're usingautocomplete-core
directly. You could also change it after page load using the DOM API.May I ask what is your use case? Are you willing to use Autocomplete with another API than Algolia?