Same groups in ReactSelect for relationship fields
Link to reproduction
No response
Describe the Bug
ReactSelect is used for relationship fields. It will be populated with OptionGroups.
Unfortunately there are multiple groups with the same label.
For example I have a relation to a pages collection:
- There will be a group with a "pages" header and a single document (the selected one).
- There will be another group also with a "pages" header and 10 documents.
- I think after scrolling, the next lazy loaded pages (10 again) will be pushed to a new "pages" group.
To Reproduce
- Create a collection with a relationship field (relation to a single or multiple collections).
- Edit the collection and open the relation dropdown.
Payload Version
2.11.2
Adapters and Plugins
db-mongodb 1.4.2
Probably it could be a feature. Don't know. A client asks to hide the headers of the groups completely if it is a relationship to a single collection.
I have the same issue. An additional category title is added when you add a new item to the select box.
When the select dropdown is filled initially, there is only one category title afterwards.
This issue was automatically closed due to lack of activity. If this issue is still relevant against the latest codebase, please create a new issue.
This issue has been automatically locked. Please open a new issue if this issue persists with any additional detail.