Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

Ionic 2: “black screen” after modal close

$
0
0

@chrisbenseler wrote:

I have a Modal page:

import {Page, ViewController, NavParams} from 'ionic-framework/ionic';
@Page({
  templateUrl: 'build/pages/tosmodal/tosmodal.html'
})
export class TOSModal {

    static get parameters() {
        return [[NavParams], [ViewController]];
    }

    constructor(navParams, viewCtrl) {
        this.data = navParams.data;
        this.viewCtrl = viewCtrl;
    }

    close() {
        this.viewCtrl.dismiss();
    }
}

when the close() is called, the modal is dismissed but the previous page doesn't appear. To the element, a display:none is added:

ion-page {
    display: none;
}

Am I missing something? Maybe in the onDismiss method?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>