The searchable() method on a Select component seems to break the options' ordering. Probably due to the usage of the ChoicesJS library as they are being rendered in the correct order in the view file initially.
Closing since this is a JavaScript thing, not something we can easily workaround right now. If somebody wants to tackle this, please feel free to open a PR and mention this issue, we can re-open it if need be.
Package
filament/forms
Package Version
v2.12.31
Laravel Version
v9.17.0
Livewire Version
v2.6
PHP Version
PHP 8.1.5
Bug description
The
searchable()
method on a Select component seems to break the options' ordering. Probably due to the usage of the ChoicesJS library as they are being rendered in the correct order in the view file initially.This works as intended:
whereas this doesn't
I think it would be useful to have a method for providing a column name to sort by.
Steps to reproduce
No response
Relevant log output
No response