vuetify icon indicating copy to clipboard operation
vuetify copied to clipboard

[Bug Report] Autocomplete/Combobox counter prop uses item text instead of item value for length

Open ianperez opened this issue 7 years ago • 3 comments

Versions and Environment

Vuetify: 1.5.14 Vue: 2.6.10 Browsers: Chrome 74.0.3729.157 OS: Windows 7

Steps to reproduce

Select a value in either the combobox or autocomplete inputs

Expected Behavior

Counter uses length of item value

Actual Behavior

Counter uses length of item text

Reproduction Link

https://codepen.io/anon/pen/VOrrEm

ianperez avatar May 21 '19 17:05 ianperez

v-combobox is more like v-text-field, and was never intended to work with objects. If I type "seventeen" I'd expect the counter to be 9 A counter doesn't really make sense on v-autocomplete without multiple, where it does work correctly.

KaelWD avatar May 22 '19 03:05 KaelWD

Hello, @KaelWD. I have another question. Please answer if possible. I am using v-autocomplete component with v-slot:selection template. when i change my items from categoryList to restaurantList and select one restaurant, it will not shown as selected on v-slot:selection template. How can i update v-slot:selection data? Thank you. question

enkhtulga avatar May 28 '19 04:05 enkhtulga

This is not a bug and the intended functionality at this time.

If you have any additional questions, please reach out to us in our Discord community.

johnleider avatar Jul 29 '19 15:07 johnleider