EddyVerbruggen / cordova-plugin-actionsheet

:clipboard: ActionSheet plugin for Cordova iOS and Android apps
208 stars 71 forks source link

Conflict when using with keyboard shrinkView plugin #26

Open patuku-roy opened 8 years ago

patuku-roy commented 8 years ago

@EddyVerbruggen I'm using this plugin along with keyboard shrinkView plugin, I have page with 2 buttons which is trigger the action sheet and the other trigger the shrinkView through input focus after we click the button.

If I'm click the action sheet button and cancel it, then click another button and programatically put the focus on the input. All keyboard shrinkView events didn't trigger at all.

Do you have any idea about this? I tried to dig both code and I found about the self.webView and self.webView.superView which is maybe be the culprit. If you have any feedback, I really appreciated because I'm really in a tight deadline.

patuku-roy commented 8 years ago

Forgot to mention, I'm using Cordova 5.1.1 and iOS 8.4.1

EddyVerbruggen commented 8 years ago

@patuku-roy Is this on iPad or iPhone?

patuku-roy commented 8 years ago

@EddyVerbruggen iPhone 5 and iOS 8.4.1

EddyVerbruggen commented 8 years ago

Can you post a link to the plugin as well? Or better: a demo app reproducing the issue?

patuku-roy commented 8 years ago

@EddyVerbruggen Okay this is my pseudo code:

$("#editor").on("click", function() {
    window.Keyboard.shrinkView(true);
    window.Keyboard.disableScrollingInShrinkView(true);
});

$("#menu").on("click", function() {
    window.plugins.actionsheet.show(
        options,
        function(buttonIndex) {
            console.log(buttonIndex);
        },
        function(error) {
            console.log(error);
            window.plugins.actionsheet.hide();
        }
    );
});

I think no special algorithm inside that code, except I have similar condition like #27 ... I have status bar plugin ... probably this is the the culprit