© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•15mo ago•
6 replies
Asad Ali Haider

->live(onBlur: true) is not working with Select when ->multiple() is true

Hey there, I'm using filament v3.2 and have a select element in my form. I'm enabling users to select multiple items and then want to perform custom action when user leaves the field. Curretly, I've tried using ->live(onBlur: true) but its not working. It trigger the ->afterStateUpdated() each time i select a value.


Select::make('products')
    ->label(__('Add Product'))
    ->searchable()
    ->multiple()
    ->getSearchResultsUsing(function (string $searchQuery) {
        // custom query
    })
    ->live(onBlur: true)
    ->afterStateUpdated(function ($state) {
        // custom event
        // dd($state) is triggering on each select
    }),
Select::make('products')
    ->label(__('Add Product'))
    ->searchable()
    ->multiple()
    ->getSearchResultsUsing(function (string $searchQuery) {
        // custom query
    })
    ->live(onBlur: true)
    ->afterStateUpdated(function ($state) {
        // custom event
        // dd($state) is triggering on each select
    }),


Looking forward to hear from you.
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

custom field live(onBlur: true) firing immediately
FilamentFFilament / ❓┊help
2y ago
multiple() is not working in form select
FilamentFFilament / ❓┊help
2y ago
Multiple Select with relationship in Builder Block is not working
FilamentFFilament / ❓┊help
2y ago
Select input not working when searchable is appended
FilamentFFilament / ❓┊help
16mo ago