-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
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
How to setting maxlenght in component? #241
Labels
Comments
As in, the number of selections allowed? |
I need to declare a quantity of 2 characters in the input that it builds inside the component. Therefore, I need the input (maxlength) to limit these characters. <input type="text" name="state" maxlength="2"> |
BNicoleSchmidt
added a commit
to BNicoleSchmidt/vue-select
that referenced
this issue
Oct 25, 2018
BNicoleSchmidt
added a commit
to BNicoleSchmidt/vue-select
that referenced
this issue
Dec 19, 2018
You can use a scoped slot for this: <v-select>
<template #search="{events, attributes}">
<input class="vs__search" v-on="events" v-bind="attributes" maxlength="2" />
</template>
</v-select> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I need to set the maxlength for this component, but I don't know.
The text was updated successfully, but these errors were encountered: