So, initially, the switch is in middle position - ok
Setting it to ON and save, transfers 1 - ok
Setting it to No transfers 0 - ok
Resetting it via X while in YES state transfers '' (empty string), resulting in null inside database - ok
Resetting it while in NO state transfers 0 resulting in NO - not ok.
I tried everything - only resetting while in ON state sets the form value to empty string.
Hi.
kartik-v widgets version: 3.4.1. PHP 7.4 and Yii 2.0.47.
I have a tristate switch configured like:
So, initially, the switch is in middle position - ok Setting it to ON and save, transfers 1 - ok Setting it to No transfers 0 - ok
Resetting it via X while in YES state transfers '' (empty string), resulting in null inside database - ok Resetting it while in NO state transfers 0 resulting in NO - not ok.
I tried everything - only resetting while in ON state sets the form value to empty string.
I can provide a bug demo, if wanted.