Cannot interact with DOM while ons-action-sheet is active

  • If I use the example code from
    I can’t interact in the “then”-part:

        title: 'Source:',
        cancelable: true,
        buttons: [
      }).then(function (index) { 
         switch(index) {
            case 0:
                 $('#input_img').trigger('click'); // Can't do this while action-sheet is active?
            case 1:

    What should I do?

  • Onsen UI

    @Bassie What is the error? Can you print stuff in the then part?

  • No errors.
    I use:


    …for when the cordova-camera-plugin fails loading (=PC).

    I now check for:

    if ({..

    …before opening the Action Sheet, that also works fine.

Log in to reply