mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-21 04:53:58 +08:00
fix(datetime): picker.refresh() in generate(...) called too early
This commit is contained in:

committed by
Manu Mtz.-Almeida

parent
1d68d1f91f
commit
58beea30f5
@ -508,6 +508,7 @@ export class DateTime extends Ion implements AfterContentInit, ControlValueAcces
|
|||||||
|
|
||||||
picker.ionChange.subscribe(() => {
|
picker.ionChange.subscribe(() => {
|
||||||
this.validate(picker);
|
this.validate(picker);
|
||||||
|
picker.refresh();
|
||||||
});
|
});
|
||||||
|
|
||||||
picker.present(pickerOptions);
|
picker.present(pickerOptions);
|
||||||
@ -516,6 +517,8 @@ export class DateTime extends Ion implements AfterContentInit, ControlValueAcces
|
|||||||
picker.onDidDismiss(() => {
|
picker.onDidDismiss(() => {
|
||||||
this._isOpen = false;
|
this._isOpen = false;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
picker.refresh();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -673,8 +676,6 @@ export class DateTime extends Ion implements AfterContentInit, ControlValueAcces
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
picker.refresh();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user