DatePicker won't allow date change when inside WhileTrue on iOS


I’m using a WhileTrue to display a DatePicker for the user to choose a date.

I am able to change dates and select those within the min and max range on Android but I cannot change any dates on iOS.

I setup a little test example below:

	var Observable = require('FuseJS/Observable');

	var show = Observable(true);

	function swap() {
		if (show.value) show.value = false;
		else show.value = true;

	var pickedDateText = Observable("");

	var selectedDate = Observable();

	var today = new Date(;

	selectedDate.onValueChanged(module, function(date) {
		if ( === '[object Date]')
			pickedDateText.value = new Date(Date.parse(date)).toDateString();
		else pickedDateText.value = "";

	module.exports = {
		pickedDateText: pickedDateText,
		selectedDate: selectedDate,

		minDate: new Date(Date.parse('1920-01-01')),
		maxDate: today,

		swap: swap,
		show: show,

	<WhileTrue Value="{show}">
			<DatePicker MinValue="{minDate}" MaxValue="{maxDate}" Value="{selectedDate}" />
	<Text Alignment="Center" Margin="0, 30, 0, 0" Value="{pickedDateText}" />
	<Button Text="Click me" Clicked="{swap}" />

If the WhileTrue is removed then it works as expected.