cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wilfred Sessoms (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CB-10097) cordova-plugin-dialogs alert does not show on iOS when called from a select list onChange() event.
Date Sat, 28 Nov 2015 23:37:10 GMT
Wilfred Sessoms created CB-10097:
------------------------------------

             Summary: cordova-plugin-dialogs alert does not show on iOS when called from a
select list onChange() event.
                 Key: CB-10097
                 URL: https://issues.apache.org/jira/browse/CB-10097
             Project: Apache Cordova
          Issue Type: Bug
          Components: CordovaLib, iOS, Plugin Dialogs
    Affects Versions: 4.0.0
         Environment: Mac OS X - Yosemite, xCode 7.1, 
            Reporter: Wilfred Sessoms
            Priority: Critical


I have a javascript file that has a form with a select drop-down list with several items in
the list. When I select an item in the list an onChange event fires that goes to a function
that contains the code to display a navigation confirm alert but the alert confirm does not
display. This code worked in Cordova 3.5.0 and IOS 7 but now that I have upgraded to Cordova
4.0.0 and IOS 9.1 it does not work. I am using Cordova Dialogs 1.2.0. I am also using JQuery
1.3.2. I am receiving in xCode the following alert.
Warning: Attempt to present <UIAlertController: 0x1688f200> on <UIWebSelectTableViewController:
0x1b0bfbd0> whose view is not in the window hierarchy!

Steps to recreate: 
1 - I have created a form with a select list as follows:
<select id='purpose' data-mini='true' data-theme='b' onChange='checkInput();'>

2 - function checkInput() has the following code:

function checkInput {
navigator.notification.confirm(
'Is this a reimbursable expense or a tax deductible expense that you will claim on your income
tax return?',
function(buttonIndex) {
onConfirmReimbursement(buttonIndex);
},
};

3 - Callback function is as follows:
function onConfirmReimbursement(buttonIndex) {
if (buttonIndex === 1) {
reimbursable = true;
deductible = false;
} else if (buttonIndex === 2) {
reimbursable = false;
deductible = true;
return;
};
};
'Business Expense', ['Reimbursable','Tax Deductible'] 
);



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message