-
Notifications
You must be signed in to change notification settings - Fork 134
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
FEAT Customization of the input field (type, autocomplete) #124
Comments
Sol#3 (partial solution)Since vue-tags-input/vue-tags-input/vue-tags-input.vue Lines 122 to 145 in 32b8f55
Example: <vue-tags-input
[...]
:autocomplete="new Date().getTime()"
/> will disable the browser autofill feature. Drawbacks The attribute |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Why?
On a mobile device, the default keyboard is displayed whereas we could want a number one or an email keyboard (see Add options for emails #68 ).
At least one dev wants to hide the input field when
maxTags
is reached Input/Placeholder should be hidden if maxTags is greater than tags length #115 .Possible solutions
Sol#1 — Add props to set HTML attributes of the input field
autocomplete
: with a random value, we could disable the browser autofill feature.type
: 'email', 'number' according to the HTML specs.Sol#2 — Add a slot to override the default input field
Full-control for the developer.
Preferred solution
For me Sol#2 is the better choice. It brings freedom to the developer.
@JohMun I would like your opinion before coding a PR. Are you still maintain this package? Do you need some help?
The text was updated successfully, but these errors were encountered: