© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
2 replies
Jon Mason

custom field live(onBlur: true) firing immediately

I have a custom field where I'm trying to use
onBlur:true
onBlur:true
, but the event is firing immediately. onBlur doesn't seem to work as expected.

MathInput::make('test')
            ->live(onBlur: true)
            ->afterStateUpdated(function (?string $state, ?string $old) {
                dd($state);
            });
MathInput::make('test')
            ->live(onBlur: true)
            ->afterStateUpdated(function (?string $state, ?string $old) {
                dd($state);
            });


<x-dynamic-component :component="$getFieldWrapperView()" :field="$field">

    <div x-data="{ state: $wire.{{ $applyStateBindingModifiers("\$entangle('{$getStatePath()}')") }} }">
        <x-filament::input.wrapper>
            <x-filament::input type="text" x-model="state" />
        </x-filament::input.wrapper>
    </div>
</x-dynamic-component>
<x-dynamic-component :component="$getFieldWrapperView()" :field="$field">

    <div x-data="{ state: $wire.{{ $applyStateBindingModifiers("\$entangle('{$getStatePath()}')") }} }">
        <x-filament::input.wrapper>
            <x-filament::input type="text" x-model="state" />
        </x-filament::input.wrapper>
    </div>
</x-dynamic-component>
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

->live(onBlur: true) is not working with Select when ->multiple() is true
FilamentFFilament / ❓┊help
15mo ago
custom field trigger live
FilamentFFilament / ❓┊help
3y ago
how to live update custom form field
FilamentFFilament / ❓┊help
14mo ago
live() deletes my cropper instance, custom field
FilamentFFilament / ❓┊help
3y ago