Usecase: Dropdown that is populated from entries in a database rather than fixed values in the code. This is preferable as the list can be maintained Admin staff without code changes.
In the Dropdown module if there is a duplicate Label, then the feature breaks and there is a React DuplicateKey error/warning. This does not occur with Semantic Ui or Material UI.
Ideally, there should be it should be possible to have a key column that is a unique value that the Dropdown uses as the list key. As an alternative, the PrimeReact component could build its list with a unique key. This could be the index number of the menu option.
I use UUID as my database column ID.
Currently, if there is an error in Database input it breaks the web page.
DropDown duplicate key error - Feature request
PrimeReact: 9.6.0
NextJs: 13.4.12
Theme Apollo v9.0
Database pg 8.8.0
react-hook-form: 7.38.0
NextJs: 13.4.12
Theme Apollo v9.0
Database pg 8.8.0
react-hook-form: 7.38.0
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
Hi,
I think this issue is fixed with 5.0.1 (the next release). If this problem continues with it, could you please create a Github issue with a sample codesandbox link for us?
Best Regards,
I think this issue is fixed with 5.0.1 (the next release). If this problem continues with it, could you please create a Github issue with a sample codesandbox link for us?
Best Regards,
Github Profile: https://github.com/mertsincan
-
- Information
-
Who is online
Users browsing this forum: No registered users and 24 guests