fix(overlay): overlay is not hidden

This commit is contained in:
Manu Mtz.-Almeida
2018-08-29 19:56:37 +02:00
parent 2268346a8e
commit 89ba55d07b
2 changed files with 3 additions and 5 deletions

View File

@ -232,9 +232,7 @@ export class Datetime {
const pickerOptions = this.generatePickerOptions();
this.picker = await this.pickerCtrl.create(pickerOptions);
await this.validate();
if (this.picker) {
await this.picker.present();
}
await this.picker.present();
}
private emitStyle() {

View File

@ -9,7 +9,7 @@ export function createOverlay<T extends HTMLIonOverlayElement>(element: T, opts:
// convert the passed in overlay options into props
// that get passed down into the new overlay
Object.assign(element, opts);
element.classList.add('ion-page-hidden');
element.classList.add('ion-page-invisible');
const overlayIndex = lastId++;
element.overlayIndex = overlayIndex;
if (!element.hasAttribute('id')) {
@ -137,7 +137,7 @@ async function overlayAnimation(
}
// Make overlay visible in case it's hidden
baseEl.classList.remove('ion-page-hidden');
baseEl.classList.remove('ion-page-invisible');
const aniRoot = baseEl.shadowRoot || overlay.el;
const animation = overlay.animation = await overlay.animationCtrl.create(animationBuilder, aniRoot, opts);