ios-checkboxes icon indicating copy to clipboard operation
ios-checkboxes copied to clipboard

Toggle fires twice when clicked

Open yuletide opened this issue 12 years ago • 2 comments

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.

Here's my js: https://github.com/codeforamerica/textizen/blob/dev/app/assets/javascripts/polls.js.coffee The problematic view: https://github.com/codeforamerica/textizen/blob/dev/app/views/polls/_form.html.erb

yuletide avatar Sep 28 '12 01:09 yuletide

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.

yuletide avatar Sep 28 '12 20:09 yuletide

Hi, I have the same issue. Did you manage to make it work?

sdesbure avatar Dec 13 '12 17:12 sdesbure