The problem is that while it seems to be working in the form visually, it is not saving the state of the second toggle (second_thing) in the DB, just the first toggle is saved correctly. As if the afterStateUpdated doesn't propagate to the save method?
Because if I manually (click with the mouse) on the second toggle directly to the state I want and press save - it is saved correctly.
How to alter the afterstateupdated method (or use something else) to save it correctly?