Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24418] Windows Phone: OptionDialog undefined error

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2019-03-05T14:50:07.000+0000
Affected Version/sRelease 7.5.0
Fix Version/sRelease 8.1.0
ComponentsWindows
LabelsOptionDialog, error, undefined, view
ReporterSandro Lain
AssigneeKota Iguchi
Created2017-02-20T08:54:34.000+0000
Updated2019-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

FileDateSize
Cattura.PNG2017-02-20T08:52:44.000+000039086

Comments

  1. Sandro Lain 2017-02-20

  2. Kota Iguchi 2019-01-03

    https://github.com/appcelerator/titanium_mobile_windows/pull/1341
  3. Samir Mohammed 2019-03-04

    FR Passed. Waiting on Jenkins build.
  4. Kota Iguchi 2019-03-04

    Merged to master.
  5. Samir Mohammed 2019-03-05

    *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

JSON Source