[TIMOB-24418] Windows Phone: OptionDialog undefined error
GitHub Issue | n/a |
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2019-03-05T14:50:07.000+0000 |
Affected Version/s | Release 7.5.0 |
Fix Version/s | Release 8.1.0 |
Components | Windows |
Labels | OptionDialog, error, undefined, view |
Reporter | Sandro Lain |
Assignee | Kota Iguchi |
Created | 2017-02-20T08:54:34.000+0000 |
Updated | 2019-03-05T14:50:07.000+0000 |
Description
OptionDialog generates an undefined error calling the show() method with the view parameter.
*Console Log*
{noformat}
[ERROR] : ----- Titanium Javascript Runtime Error -----
[ERROR] : In undefined: undefined,undefined
[ERROR] : Message: Uncaught Error: undefined
{noformat}
*Test code*
{noformat}
var win = Ti.UI.createWindow();
var btn = Ti.UI.createButton({
title: 'OptionDialog Test'
});
win.add(btn);
btn.addEventListener('click', function()
{
var options = ['Option 1', 'Option 2'];
var dialog = Ti.UI.createOptionDialog({
destructive: 1,
options: options,
title: 'Test Label'
});
dialog.addEventListener('click', function(e)
{
if (e.index === 0)
{
console.log("HELLO!");
}
});
dialog.show({
view: btn
});
});
win.open();
{noformat}
Attachments
File | Date | Size |
Cattura.PNG | 2017-02-20T08:52:44.000+0000 | 39086 |
https://github.com/appcelerator/titanium_mobile_windows/pull/1341
FR Passed. Waiting on Jenkins build.
Merged to master.
*Closing ticket.* Fix verified in SDK Version
8.1.0.v20190304181927
. Test and other information can be found at: https://github.com/appcelerator/titanium_mobile_windows/pull/1341