Dropdown datakey not working

UI Components for Vue
Post Reply
Posts: 32
Joined: 15 Jan 2015, 17:51
Location: Bursa,Turkiye

08 Jan 2020, 10:12

When add datakey properties (which is uniq key) on select item show all selected

Posts: 18223
Joined: 05 Jan 2009, 00:21
Location: Cybertron

10 Jan 2020, 14:24

More information with sample code to reproduce will help as I cannot replicate, here is an example I've tried;

Code: Select all

<Dropdown v-model="selectedCity" :options="cities" optionLabel="name" placeholder="Select a City" dataKey="code" />

Code: Select all

export default {
    data() {
        return {
            selectedCity: null,
            cities: [
                {name: 'New York', code: 'NY'},
                {name: 'Rome', code: 'RM'},
                {name: 'London', code: 'LDN'},
                {name: 'Istanbul', code: 'IST'},
                {name: 'Paris', code: 'PRS'}

Post Reply

Return to “PrimeVue”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest