Project: titanium
Issue TIMOB-19137: Windows: Showing an alert dialog when another alert dialog is on screen throws runtime error
h5.Description When showing an alert dialog if one is already shown then the app will throw a runtime error. {code} // this sets the background color of the master UIView (when there are no windows/tab groups on it) Titanium.UI.setBackgroundColor('#000'); // // create base UI tab and root window // var win1 = Titanium.UI.createWindow({ backgroundColor:'#fff' }); var label1 = Titanium.UI.createLabel({	color:'#999',	text:'I am Window 1',	font:{fontSize:20,fontFamily:'Helvetica Neue'},	textAlign:'center',	width:'auto' }); label1.addEventListener('click', function(){	alert('hi');	setTimeout(function(){	alert('hi2');	},1000); }) win1.add(label1); win1.open(); {code} h5.Steps to reproduce 1. Add the above code to an app.js 2. Build to an emulator/device 3. Tap the label 4. Dismiss the alert and the runtime error 5. Tap the label and then tap the close button h5.Actual result 3. The app will throw a runtime error 5. No runtime error as the first alert has been dismissed h5.Expected result A runtime error should not be thrown
Story points: 8