Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5621] MobileWeb: Method hide of pickerRow does not work on iPhone

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-06-06T05:13:17.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsMobileWeb
Labelsn/a
ReporterMisha Vasko
AssigneeMaxim Negadaylov
Created2011-05-26T06:35:29.000+0000
Updated2017-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();
});

Comments

  1. Maxim Negadaylov 2011-05-27

    For fixing this we must temporary delete option HTMLElement from select HTMLElement. Now node hides by setting display='none' to option
  2. Lee Morris 2017-03-09

    Closing ticket as fixed.

JSON Source