Hello.
When I access toggle control on ‘click’ state through .config.value or .data.value the state is inverted.
When control is accessed directly state is OK.
Please, check the snippet:
http://webix.com/snippet/b269a2d4
click handler fire a moment before value changes, so you access the toggle control, before it switches to the new state.
Just use “onChange” event to access the valid value.