Project: titanium
Issue TIMOB-19037: Windows: Reopening a window from a tableview does not work until another window is opened
h5.Description When using a tableview, if on click a tableview opens a window the windows will not open again until another row is clicked, for example considering the following code, if I tap on the row 'Apples' a window will open, when I close that window it will not open again until I tap another row {code} var win = Ti.UI.createWindow({backgroundColor:'black'}); var tableData = [ {title: 'Apples'}, {title: 'Bananas'}, {title: 'Carrots'}, {title: 'Potatoes'} ] var table = Ti.UI.createTableView({ data: tableData }); table.addEventListener('click', function(e){ var win2 = Ti.UI.createWindow({backgroundColor:'red'}); var lbl = Ti.UI.createLabel({ text: 'HELLO!', color:'black', width: 'auto', height: 'auto' }); win2.add(lbl); lbl.addEventListener('click',function(){ win2.close(); }); win2.open(); }); win.add(table); win.open(); {code} h5.Steps To Reproduce 1. Replace the attached app.js with the above code 2. Build to a device or emulator 3. Tap on Apples 4. Tap on the 'HELLO' label to close the window 5. Tap on Apples again 6. Tap on Potatoes 7. Tap on the 'HELLO' label to close the window 8. Tap on Apples h5.Actual Result 3. A window will open 5. The window will not open 6. A window will open 8. A window will open h5.Expected Result A window should open every time I tap the tableview
Story points: 8