Open lmsmartins opened 10 years ago
what version? have you tried the latest master code ... I think we have upgraded the switch to include the mentioned fix
Yes I did. If you try the switch button on this link http://yiibooster.clevertech.biz/widgets/forms/view/activeform.html you can see the button's behavior: 1 - When toggling the switch button several times (in a form $form->switchGroup) the ON and OFF buttons go slightly up. Also, the focusout event never triggers to remove the class "bootstrap-switch-focused". Sometimes the class is removed, but it is very often. Most of the times the switch button is always focused. 2 - The switch button outside the form works great in terms of position, but it has the same focusout issue.
When toggling the switch button several times (in a form $form->switchGroup) the ON and OFF buttons go slightly up. Also, the focusout event never triggers to remove the class "bootstrap-switch-focused". Sometimes the class is removed, but it is very often. Most of the times the switch button is always focused. The switch button outside the form works great in terms of position, but it has the same focusout issue. Please see the following link with the switch button in a form. http://yiibooster.clevertech.biz/widgets/forms/view/activeform.html
I replaced the files bootstrap-switch.js and the bootstrap-switch.min.js files from http://www.bootstrap-switch.org which solved the first issue regarding the ON and OFF position. However, I still have the same focusout issue.
Thanks.