Skip to content
This repository was archived by the owner on May 18, 2024. It is now read-only.

Toggle fires twice when clicked #9

@yuletide

Description

@yuletide

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions