Improvement Multi-Select UX for Relation Fields (hasMany: true) #13151
neltevreeke
started this conversation in
Feature Requests & Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When using the
Select
component (specifically withrelation
fields wherehasMany: true
, the current behaviour closes the dropdown and clears the search input after each item is selected. This interrupts the flow of selecting multiple items, as the user has to reopen the dropdown and retype their search term repeatedly. Something you would not expect when a user typically needs to add more than one item withhasMany: true
.Steps to reproduce:
relationship
field configured withhasMany: true
Expected behaviour:
For a better user experience, especially when selecting multiple related items:
Suggested fix:
When
hasMany: true
is set on a relationship field, update the Select component behaviour to:I believe this shouldn't be super hard to implement considering payload is using the react-select library and their component API already has configurations in place to make this possible, e.g.
closeMenuOnSelect
andblurInputOnSelect
. This change would align the component's UX with more common patterns and make the admin experience significantly faster when working with large quantities of documents.Beta Was this translation helpful? Give feedback.
All reactions