block-components icon indicating copy to clipboard operation
block-components copied to clipboard

`ContentPicker` new `prop` to control selected initial order

Open xipasduarte opened this issue 3 years ago • 0 comments

Is your enhancement related to a problem? Please describe.

When using the picker my desired list output requires that the new item is pushed to the bottom of the list. In a small list this is not a problem to manually resort, also it's not too hard to redo the actual selection with onPickChange, but it might be simpler if we do it this way.

Designs

No response

Describe alternatives you've considered

I've considered letting the user resort manually, but it seems to be too troublesome for large lists. another alternative, which I have in place, was to use onPickChange and redo the sort, considering it pushes to the top, but it feels like I'll be doing this every time I need this behavior change.

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

xipasduarte avatar Jul 12 '22 20:07 xipasduarte