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

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

@jtushar53

Description

@jtushar53

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();
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions