Toggle component afterStateUpdated event does not fire on false

Hi, the after state update event is not triggered when you switch from on ("1") to off (""). The Select component, when the 'placeholder' option is selected does not fire the event either. Is this a bug? Is there a way to fire the event when the Toggle is se to off?
Toggle::make('active')
->afterStateUpdated(function (Get $get, Set $set, ?string $old, ?string $state) {
dd($state, $old);
})
->live(),
Toggle::make('active')
->afterStateUpdated(function (Get $get, Set $set, ?string $old, ?string $state) {
dd($state, $old);
})
->live(),
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server