fix(datetime): picker.refresh() in generate(...) called too early

This commit is contained in:
Felix Livni
2017-03-04 15:39:02 -08:00
committed by Manu Mtz.-Almeida
parent 1d68d1f91f
commit 58beea30f5

View File

@ -508,6 +508,7 @@ export class DateTime extends Ion implements AfterContentInit, ControlValueAcces
picker.ionChange.subscribe(() => {
this.validate(picker);
picker.refresh();
});
picker.present(pickerOptions);
@ -516,6 +517,8 @@ export class DateTime extends Ion implements AfterContentInit, ControlValueAcces
picker.onDidDismiss(() => {
this._isOpen = false;
});
picker.refresh();
}
/**
@ -673,8 +676,6 @@ export class DateTime extends Ion implements AfterContentInit, ControlValueAcces
}
}
}
picker.refresh();
}
/**