Dropdown: Duplicate keys detected when I have elements with the same name

UI Components for Vue
Post Reply
rjpereira
Posts: 1
Joined: 17 Dec 2019, 03:49

17 Dec 2019, 03:59

Hello everyone!
I had a problem using the Dropdown component, I happen to have a collection of objects to display in this dropdown, but some elements of this list have the same name which causes the error: Duplicate keys detected, for example filtering functionality doesn't work . Investigating the component code I noticed that it uses as a key
: key = "getOptionLabel (option)"
but ask, it should not be:

: key = "getOptionValue (option)"

I modified this in the source and the dropdown search went back to work and stopped showing warnings on the console, can this change cause me problems?

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

30 Dec 2019, 12:01

Should be fixed with RC4.

Post Reply

Return to “PrimeVue”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 5 guests