© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
3 replies
Robinson

Select::maxItems() is not reactive?

Hello, guys

Why is method maxItems not reactive? The new item limit is not updated in the select, according to the value placed in the input.

 TextInput::make('max_items_input')->live(onBlur: true),

    Select::make('technologies')
        ->multiple()
        ->options([
        'tailwind' => 'Tailwind CSS',
        'alpine' => 'Alpine.js',
        'laravel' => 'Laravel',
        'livewire' => 'Laravel Livewire',
    ])
    // It doesn't work
    ->maxItems(fn (Get $get): int => $get('max_items_input') ?? 1) 
    // It works
    ->helperText(fn (Get $get): string => $get('max_items_input') ?? 1)
 TextInput::make('max_items_input')->live(onBlur: true),

    Select::make('technologies')
        ->multiple()
        ->options([
        'tailwind' => 'Tailwind CSS',
        'alpine' => 'Alpine.js',
        'laravel' => 'Laravel',
        'livewire' => 'Laravel Livewire',
    ])
    // It doesn't work
    ->maxItems(fn (Get $get): int => $get('max_items_input') ?? 1) 
    // It works
    ->helperText(fn (Get $get): string => $get('max_items_input') ?? 1)
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Select::searchable() is not reactive?
FilamentFFilament / ❓┊help
3y ago
Select component disabled is not reactive, but the hint is
FilamentFFilament / ❓┊help
3y ago
Reactive select => visible Card
FilamentFFilament / ❓┊help
3y ago
wizard is not reactive
FilamentFFilament / ❓┊help
3y ago