Zaydme / strapi-plugin-multi-select

A strapi custom field for a multi select input.
https://www.npmjs.com/package/strapi-plugin-multi-select
MIT License
39 stars 21 forks source link

Preserve selected order #21

Closed ajax-fam-d closed 1 month ago

ajax-fam-d commented 11 months ago

From options list ['a', 'b', 'c'] choose b, then a, selected values list would be ['b', 'a']

On reload, selected values lose their order, as they're filtered by possibleOptions in sanitizedValue and become ['a', 'b']

Would appreciate for this feature, thanks!

Zaydme commented 1 month ago

fixed in https://github.com/Zaydme/strapi-plugin-multi-select/commit/47f334ddf8526ae2c5991d3faab2bbe91be6bf45 available in @2.0.1