Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18980] Windows: Closing an alert quits the app

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2015-06-10T17:39:56.000+0000
Affected Version/sRelease 4.1.0
Fix Version/sRelease 4.1.0
ComponentsWindows
Labelsn/a
ReporterEwan Harris
AssigneeKota Iguchi
Created2015-06-06T00:08:05.000+0000
Updated2015-07-02T18:20:33.000+0000

Description

Description

When dismissing an alert dialog, both the close button and the hardware back button quit the application.
var win = Ti.UI.createWindow({backgroundColor:'white'});

var button = Titanium.UI.createButton({
    top: 60,
    title: 'Hello',
    width: '180',
    height: '80',
    image: '/KS_nav_ui.png'
});


button.addEventListener('click', function(){
    alert('HELLO!');
});

win.add(button);
win.open();
*I am unsure if the app quits or crashes as logging does not seem to work with my machine, I am investigating if this is on every machine or just mine*

Steps To Reproduce

1. Add the above code the the app.js of a Titanium Classic application 2. Build the app to device using appc run -p windows -T device or ti build -p windows -T device 3. Tap the 'Hello' button, due to TIMOB-18979 you can't see it, it's around the top middle in the top third of the screen 4. Tap 'Close' or the hardware back button

Actual Result

The app quits

Expected Result

The app should not quit

Comments

  1. Kota Iguchi 2015-06-10

    https://github.com/appcelerator/titanium_mobile_windows/pull/272
  2. Ewan Harris 2015-07-02

    Verified using: Windows 8.1 Appc CLI (NPM): 4.1.0-1 Appc CLI (Registry): 4.1.0-4 Ti SDK: 4.1.0.v20150702030940 Appc Studio: 4.1.0.201507010234 Dismissing an alert dialog no longer crashes the app Closing ticket

JSON Source