You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using a Select, and passing an array of groups to options(), numeric keys (representing database IDs) are discarded when getting the enabled options via $component->getEnabledOptions().
Package
filament/filament
Package Version
v3.2.128
Laravel Version
v11.34.2
Livewire Version
v3.5.12
PHP Version
8.3.12
Problem description
When using a Select, and passing an array of groups to
options()
, numeric keys (representing database IDs) are discarded when getting the enabled options via$component->getEnabledOptions()
.Expected behavior
Numeric keys are kept, flattening the options array like so:
Steps to reproduce
Having the following schema:
This is the result of the dd:
While I expected this result:
Reproduction repository (issue will be closed if this is not valid)
https://github.com/standaniels/filament-bug
Relevant log output
No response
Donate 💰 to fund this issue
The text was updated successfully, but these errors were encountered: