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(),
Was this page helpful?