Dmytro
Is there a way to stop the reordering of options for Select?
I need a Select component which allows select multiple options and store the order of selected option, in my example I have Dish and Ingredient models, Dish has belongsToMany relation to ingredients. Pivot table dish_ingredient has additional order column.
Select component configured like this
To keep initial ordering I added orderByPivot.
I fixed ordering after adding a new option using getOptionLabelsUsing callback:
The problem is that options are reordered on the UI during searching or after adding a new option. I need stop this. Looks like the order is changed by JS and i have no idea how to stop this.
1 replies