gitbrent / bootstrap4-toggle

Bootstrap 4 Switch Button / Toggle
https://gitbrent.github.io/bootstrap4-toggle/
MIT License
213 stars 67 forks source link

Toggle appears as "on" for a second when created, even if source checkbox is unchecked #28

Open tarockx opened 4 years ago

tarockx commented 4 years ago

It's the first time I use this library, and I noticed something a bit annoying: when a toggle is initialized, even if the corresponding checkbox is not checked, the toggle appears in the "on" position for a brief (but noticeable) moment, before "animating" to the off position.

I've capture a gif of this happening to show what I mean: captured

Is there a way to avoid this? It's confusing and unnecessary....

Anyway, thanks for any help and congrats on the library, apart from this small issue it's really great.