vuetifyjs / vuetify

🐉 Vue Component Framework
https://vuetifyjs.com
MIT License
39.9k stars 6.97k forks source link

[Feature Request] DataList 'Vuetify Style' #9507

Closed Paulsky closed 5 years ago

Paulsky commented 5 years ago

Problem to solve

I'm looking for a 'Vuetify style' HTML5 datalist component. Please see the HTML 5 specs of 'datalist' here: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/datalist

So it's pretty similar as the <v-autocomplete /> component, but the difference is (just like the native HTML element) it accepts custom input value, if the value is missing from the list.

For example; if you look at this W3schools example: https://www.w3schools.com/tags/tryit.asp?filename=tryhtml5_datalist. When you for example type in 'Brave Browser' in the input field and submit it, that value is also accepted.

Proposed solution

Maybe we could provide a 'list' attribute for <v-text-field /> component, or add an 'accept-custom' attribute to the <v-autocomplete /> component, to accept custom input.

Webifi commented 5 years ago

Isn't that what v-combobox is all about?

Paulsky commented 5 years ago

@Webifi thank you! You are right, I misunderstood the <v-combobox /> component.