servergrove / NgSwitchery

An AngularJS Directive for Switchery
MIT License
87 stars 49 forks source link

Wrong place of the switch button #9

Closed ariesxje closed 10 years ago

ariesxje commented 10 years ago

When the model of the switch is true, and its initial state is hidden, e.g.

<input type="checkbox" class="js-switch" js-switch ng-model="active" ng-hide="hidden">

hidden is originally true, and active is originally true which makes the swtich is "on" and hidden at the first stage, then sets the hidden to false to show the switch, then the circle would appear at the right of its background, like this:

(__)O

Any suggestion?