0

Im trying to make work this autocomplete with multiple prop, it works with muliple = false (default).

When I add the prop multiple to autocomplete then the dropdown doesn't show, the multiple prop works with v-select but whe i chage it to v-autocomplete is not working.

Note: if I asign an item from the list to the v-model, it get selected but still not working as it should be

simple code (doesn't work in my local)

<template>
    <div>
        <v-autocomplete v-model="office" :items="locations" multiple></v-autocomplete>
    </div>
</template>

<script>
    data() {
        return {
            locations: ["Toronto", "New York", "San Jose", "Vancouver"],
            office: [],
        }
    }
</script>

this is how it looks

this is how it looks

html devtool

enter image description here

Vue devtool

enter image description here

as you can see, the v-automcplete has the items, but still not showing up, im usign the last version of vuetify (vue2)

Monicake
  • 45
  • 7
  • As [written here](https://vuetifyjs.com/en/components/autocompletes/#asynchronous-items), you need to have `:search-input.sync="search"`. Please check the documentation and try to match the example. Since you're using `multiple` and that it's a requirement in that case. – kissu Nov 29 '22 at 15:56
  • @kissu i cant even write in the searchbox when multiple is true, I literally copied that `v-autocomplete` with multiple prop, not working :( – Monicake Nov 29 '22 at 16:48
  • just to be clear: "im usign the last version of vuetify (vue2)" do you mean you're using vuetify 3 (the latest version) with vue 2? if so, they're not compatible, vuetify 3 is only meant to be used with vue 3 and has it's own [separate documentation](https://next.vuetifyjs.com). or do you mean you're using the latest vuetify version _for_ vue2, which should be vuetify v2.6.12? – yoduh Nov 29 '22 at 17:17
  • @yoduh last version for vue2 - 2.6.12 – Monicake Nov 29 '22 at 17:21

0 Answers0