GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Hey, thanks for the great work! I've used this in two places in our app, and one of them is acting strangely -- it only sticks if dragged. When clicked, the switch toggles on, then flips back.
Any idea what could cause this, or how to fix it? I haven't dove into the JS internals or tried debugging yet.
The problematic view: https://github.com/codeforamerica/textizen/blob/dev/app/views/polls/_form.html.erb
Just realized the toggle operates fine when I click in the space to the right of the actual switch (div.iPhoneCheckContainer).
When I attach a click event handler to iPhoneCheckContainer, a click to the right of the switch fires it once, but a click on the actual switch fires it twice.
Hi, I have the same issue. Did you manage to make it work?