I suddenly got issue on Repeater after running composer update

Repeater::make('transfers')
->schema([
Forms\Components\Select::make('transfer_type')
->options([
Models\Division::class => __('Division'),
Models\Department::class => __('Department'),
Models\Position::class => __('Position'),
Models\PositionLevel::class => __('Position level'),
Models\Supervisor::class => __('Supervisor'),
])
->distinct()
->native(false)
->live(onBlur: true)
->afterStateUpdated(function (Get $get, Set $set) {
$set('from_id', $this->getFromId($get('transfer_type')));
})
->required(),
Forms\Components\Select::make('from_id')
->label(__('From'))
->disabled()
->options(fn(Get $get) => static::getOptions($get('transfer_type')))
->native(false)
->dehydrated(true)
->required(),
Forms\Components\Select::make('to_id')
->label(__('To'))
->native(false)
->options(fn(Get $get) => static::getOptions($get('transfer_type')))
->disableOptionWhen(fn(Get $get, string $value) => $get('from_id') == $value)
->required(),
])->columns(3)
Repeater::make('transfers')
->schema([
Forms\Components\Select::make('transfer_type')
->options([
Models\Division::class => __('Division'),
Models\Department::class => __('Department'),
Models\Position::class => __('Position'),
Models\PositionLevel::class => __('Position level'),
Models\Supervisor::class => __('Supervisor'),
])
->distinct()
->native(false)
->live(onBlur: true)
->afterStateUpdated(function (Get $get, Set $set) {
$set('from_id', $this->getFromId($get('transfer_type')));
})
->required(),
Forms\Components\Select::make('from_id')
->label(__('From'))
->disabled()
->options(fn(Get $get) => static::getOptions($get('transfer_type')))
->native(false)
->dehydrated(true)
->required(),
Forms\Components\Select::make('to_id')
->label(__('To'))
->native(false)
->options(fn(Get $get) => static::getOptions($get('transfer_type')))
->disableOptionWhen(fn(Get $get, string $value) => $get('from_id') == $value)
->required(),
])->columns(3)
No description
5 Replies
wagnerfnds
wagnerfnds3mo ago
Yeah, im getting this same error, i guess is something with the searchable() on select fields also, after composer update yesterday the strange thing is that i downgraded filament and livewire versions to 3 week ago version, and the error still.
wagnerfnds
wagnerfnds3mo ago
and someone also opened a recent issue, https://github.com/filamentphp/filament/issues/14541
GitHub
Form Select Component does not work when used on relationship with ...
Package filament/forms Package Version v3.2.117 Laravel Version v11.28.0 Livewire Version v3.5.6 PHP Version PHP 8.2.22 Problem description I have an model Order with relationship customer (belongs...
ChesterS
ChesterS3mo ago
Looks like the problem is with Laravel 11, so you need to lock that to something lower thatn 11.28 (according to this issue at least https://github.com/filamentphp/filament/issues/14528)
wagnerfnds
wagnerfnds3mo ago
Even after downgraded laravel it still not working for me. i will try to downgrade filament also too
Zen Nitiruj
Zen NitirujOP3mo ago
It seems that the issue is on native javascript. It work when remove ->native(false)
Want results from more Discord servers?
Add your server