Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-24418

Windows Phone: OptionDialog undefined error

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Release 7.5.0
    • Fix Version/s: Release 8.1.0
    • Component/s: Windows
    • Environment:

      OS: Windows 10 Pro
      Emulator: Mobile Emulator 10.0.14393.0 720p 5 inch 1GB
      Studio: 4.8.0.201612050850
      appc 6.1.0
      Titanium SDK 6.1.0.v20170202120400

    • Story Points:
      5
    • Sprint:
      2019 Sprint 1, 2019 Sprint 3, 2019 Sprint 5

      Description

      OptionDialog generates an undefined error calling the show() method with the view parameter.

      Console Log

      [ERROR] :  ----- Titanium Javascript Runtime Error -----
      [ERROR] :  In undefined: undefined,undefined
      [ERROR] :  Message: Uncaught Error: undefined
      

      Test code

       
      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();
      

        Attachments

          Activity

            People

            • Assignee:
              kiguchi Kota Iguchi
              Reporter:
              sandrolain Sandro Lain
              Reviewer:
              Gary Mathews
              Tester:
              Samir Mohammed
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-10501
                  Sync status:
                  PENDING
                  Last received:
                  Last sent:

                  Git Source Code