Skip to content
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.

Image not getting dismissed when using back button on device #153

Open
jtushar53 opened this issue Aug 9, 2019 · 0 comments
Open

Image not getting dismissed when using back button on device #153

jtushar53 opened this issue Aug 9, 2019 · 0 comments

Comments

@jtushar53
Copy link

jtushar53 commented Aug 9, 2019

Using Ionic 4, tested on Ionic 4.7.4 and 4.6.2. Also is reproducible when using https://fivethree-team.github.io/ionic-4-components/image from a mobile's chrome browser.

Workaround: -
Use emitter, didOpen and didClose

<fiv-gallery #fivGallery (didOpen)="onImageOpen()" (didClose)="onImageClose()">


  onImageOpen() {
    this.backBtnSub = this.platform.backButton.subscribeWithPriority(1, () => {
      this.closeImagePopup();
    });
  }

  onImageClose() {
    this.backBtnSub.unsubscribe();
  }

  closeImagePopup() {
    this.giveGallery.close();
  }
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant