YiiBooster icon indicating copy to clipboard operation
YiiBooster copied to clipboard

SwitchGroup button position and focusout

Open lmsmartins opened this issue 9 years ago • 2 comments

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.

lmsmartins avatar Aug 05 '14 20:08 lmsmartins