© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
1 reply
Jamie Cee

State not updating

                        Forms\Components\TextInput::make('title')
                            ->label("Title ($locale->locale)")
                            ->required()
                            ->maxLength(100)
                            ->afterStateHydrated(function (Forms\Components\TextInput $component, $record) use ($locale) {
                                return $component->state($record->locales()->where('locales_offer.locale', $locale->locale)->first()->pivot->title ?? $record->title);
                            })
                            ->live()
                            ->key('title'),
                        Forms\Components\TextInput::make('title')
                            ->label("Title ($locale->locale)")
                            ->required()
                            ->maxLength(100)
                            ->afterStateHydrated(function (Forms\Components\TextInput $component, $record) use ($locale) {
                                return $component->state($record->locales()->where('locales_offer.locale', $locale->locale)->first()->pivot->title ?? $record->title);
                            })
                            ->live()
                            ->key('title'),


So I have this grid thats inside a tab component. When I switch component, it should update the input value. But the content is not currently changing.

If I dd($component->state); the field doesn't exist, but dd component does show the TextInput element
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

Viewfield not updating state
FilamentFFilament / ❓┊help
2y ago
Liveware inputs not updating state
FilamentFFilament / ❓┊help
3y ago
Updating state after filtering
FilamentFFilament / ❓┊help
3y ago
Disabled field through $set function not updating state
FilamentFFilament / ❓┊help
3y ago