[TIMOB-5621] MobileWeb: Method hide of pickerRow does not work on iPhone
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-06-06T05:13:17.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | MobileWeb |
Labels | n/a |
Reporter | Misha Vasko |
Assignee | Maxim Negadaylov |
Created | 2011-05-26T06:35:29.000+0000 |
Updated | 2017-03-09T20:40:43.000+0000 |
Description
Method hide of pickerRow object does not work on iPhone Safari. When testing in desktop Chrome it is ok.
var win = Ti.UI.currentWindow;
var picker = Ti.UI.createPicker({
top: 30,
left: 100
});
win.add(picker);
p1 = Ti.UI.createPickerRow({title: 'Option1'});
p2 = Ti.UI.createPickerRow({title: 'Option2'});
picker.add(p1);
picker.add(p2);
var but = Ti.UI.createButton({
title: 'hide'
});
win.add(but);
but.addEventListener('click', function(){
p1.hide();
});
For fixing this we must temporary delete option HTMLElement from select HTMLElement. Now node hides by setting display='none' to option
Closing ticket as fixed.