[
https://issues.apache.org/jira/browse/CB-8773?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15797751#comment-15797751
]
ASF GitHub Bot commented on CB-8773:
------------------------------------
Github user dirkpostma commented on the issue:
https://github.com/apache/cordova-plugin-dialogs/pull/50
For ionic users who suffer the same problem, I found a workaround by
applying a 500ms timeout.
It's bad UX because of the delay, but at least the keyboard is not
dismissed anymore.
> function promptIOS(message, title, value) {
> return $timeout(function() {
> return $cordovaDialogs.prompt(_.defaults(message, ""),
_.defaults(title, "Type een omschrijving"), ['Cancel', 'OK'], value)
> .then(function(result) {
> var input = result.input1;
> // no button = 0, 'Cancel' = 1, 'OK' = 2
> var buttonIndex = result.buttonIndex;
>
> if (buttonIndex == 2) {
> // OK pressed
> return $q.resolve(result.input1);
> } else {
> // Cancel
> return $q.reject("user pressed cancel");
> }
> });
> }, 500);
> }
> iOS Keyboard doesn't open when Prompt dialog displayed
> ------------------------------------------------------
>
> Key: CB-8773
> URL: https://issues.apache.org/jira/browse/CB-8773
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugin Dialogs
> Environment: iOS
> Reporter: Sean Hill
>
> When you call navigator.notification.prompt the prompt displays but the
> keyboard does not automatically display. You have to tap the input to display
> the keyboard.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]