Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conflict when using with keyboard shrinkView plugin #26

Open
patuku-roy opened this issue Oct 9, 2015 · 5 comments
Open

Conflict when using with keyboard shrinkView plugin #26

patuku-roy opened this issue Oct 9, 2015 · 5 comments

Comments

@patuku-roy
Copy link

@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
Copy link
Author

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

@EddyVerbruggen
Copy link
Owner

@patuku-roy Is this on iPad or iPhone?

@patuku-roy
Copy link
Author

@EddyVerbruggen iPhone 5 and iOS 8.4.1

@EddyVerbruggen
Copy link
Owner

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

@patuku-roy
Copy link
Author

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants