mirror of
https://github.com/filamentphp/filament.git
synced 2026-10-24 23:35:30 +08:00
Update 03-select.md
This commit is contained in:
@@ -160,12 +160,13 @@ Select::make('technologies')
|
||||
->relationship(titleAttribute: 'name')
|
||||
```
|
||||
|
||||
> When using `disabled()` with `relationship()`, ensure that `disabled()` is called before `relationship()`. This ensures that the `dehydrated()` call from within `relationship()` is not overridden by the call from `disabled()`.
|
||||
When using `disabled()` with `multiple()` and `relationship()`, ensure that `disabled()` is called before `relationship()`. This ensures that the `dehydrated()` call from within `relationship()` is not overridden by the call from `disabled()`:
|
||||
|
||||
```php
|
||||
use Filament\Forms\Components\Select;
|
||||
|
||||
Select::make('technologies')
|
||||
->multiple()
|
||||
->disabled()
|
||||
->relationship(titleAttribute: 'name')
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user