mask with afterStateUpdated immediately submits form

Why does using the mask() method as well as the afterStateUpdated method on a TextInput make the form immediately submit?
TextInput::make('total')
->mask('999999')
->afterStateUpdated(function (?string $state, ?string $old) {
Log::debug($state);

}),
TextInput::make('total')
->mask('999999')
->afterStateUpdated(function (?string $state, ?string $old) {
Log::debug($state);

}),
Using either one by itself works as expected.
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server