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?
Dropdown: Duplicate keys detected when I have elements with the same name
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
Should be fixed with RC4.
-
- Information
-
Who is online
Users browsing this forum: No registered users and 14 guests