refinedev / refine

A React Framework for building internal tools, admin panels, dashboards & B2B apps with unmatched flexibility.
https://refine.dev
MIT License
25.92k stars 1.96k forks source link

feat(core): add `selectedOptionsOrder` in `useSelect` #6071

Open Dominic-Preap opened 1 week ago

Dominic-Preap commented 1 week ago

PR Checklist

Please check if your PR fulfills the following requirements:

Bugs / Features

What is the current behavior?

Cannot sort selectedOptions at the top of list when use useSelect with defaultValue.

What is the new behavior?

feat: add selectedOptionsOrder in useSelect

fixes # (https://github.com/refinedev/refine/issues/6061)

Notes for reviewers

changeset-bot[bot] commented 1 week ago

🦋 Changeset detected

Latest commit: 49c26e3bcfd41a9eb7a0dc440076b457bf3cd7df

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Dominic-Preap commented 2 days ago

Okay I'll update it tonight.