Form ->live() Not Working

HI Again,

I have a field that the user needs to enter an increase value, I want this value to save on blur. I believe after reading the docs ->live() will do the job. I have the below code and it doesn't save to the Data Base on Blur but the afterStateUpdated() function does work?

Am I missing something obvious here??

Forms\Components\TextInput::make('increase_percent')->label('% Increase') 
                                ->numeric()
                                ->inputMode('decimal')
                                ->live(onBlur: true)
                                ->afterStateUpdated(function (?string $state, ?string $old) {
                                    Notification::make()
                                            ->title('Price Increase Adjusted From ' . $old . ' to' . $state)
                                            ->success()
                                            ->send();
                                })
                            ]),
Was this page helpful?