facebook

Button click event firing twice

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #343227 Reply

    jcole75
    Member

    In an app I’m working on, the button click events are firing twice. Most of the time this is not a problem, but I have one button that checks a checkbox if it is unchecked and vice versa. When this button is clicked, the checkbox is checked and immediately unchecked. This happens on the device and in the test center.

    if ($('input[name=prescription2_checkbox]').is(':checked')) {
        $('input[name=prescription2_checkbox]').attr('checked',false);
        console.log("unchecking");
    }
    else {
        $('input[name=prescription2_checkbox]').attr('checked',true);
        console.log("checking");
    }
    

    The console log shows:
    checking
    unchecking

    I’m using the beta release for iOS 7 support. Is this a bug or can I do something to fix this?

    #343236

    support-michael
    Keymaster

    Thanks for the error report. We have a fix planned for this issue (testing it now) that will be available early next week when we roll out mobione 2.5 milestone-3 version.

    #343241

    jcole75
    Member

    Great. Thank you for the reply.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Button click event firing twice

You must be logged in to post in the forum log in