You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 29, 2022. It is now read-only.
Hi, using the Controller Feature with modalController i set srcFallback so when i set src to null or just empty string (trying to reproduce fail behaviour) the fallback its no loading the backup image, So I tested on the Stackblitz demo and the same.
Expected behavior:
srcFallback on ModalController set the image when src fails
async openViewer() {
const modal = await this.modalController.create({
component: ViewerModalComponent,
componentProps: {
src: '', // required <--- here just null or empty
srcFallBack: 'https://i.picsum.photos/id/237/200/200.jpg',
title: 'Silhoutte (Programmatic)', // optional
text: 'Photo by Mayur Gala on Unsplash' // optional
},
cssClass: 'ion-img-viewer', // required
keyboardClose: true,
showBackdrop: true
});
return await modal.present();
}
Then Open the Modal With the Button at the bottom of the demo.
When I test like this working fine
<ion-img-viewer
title="Silhoutte (Scheme / Light)"
text="Photo by Mayur Gala on Unsplash"
[src]=""
[srcFallback]="'https://i.picsum.photos/id/1040/200/200.jpg'"
></ion-img-viewer>
Related code:
Just use the same stackblitz demo
(https://stackblitz.com/github/SimonGolms/ngx-ionic-image-viewer/tree/master/demo)
Bug Report
Ionic version:
[x] 4.x
Current behavior:
Hi, using the Controller Feature with modalController i set srcFallback so when i set src to null or just empty string (trying to reproduce fail behaviour) the fallback its no loading the backup image, So I tested on the Stackblitz demo and the same.
Expected behavior:
srcFallback on ModalController set the image when src fails
Steps to reproduce:
Just overwrite on stackblitz demo (https://stackblitz.com/github/SimonGolms/ngx-ionic-image-viewer/tree/master/demo) with this:
Then Open the Modal With the Button at the bottom of the demo.
When I test like this working fine
Related code:
Other information:
Ionic info:
The text was updated successfully, but these errors were encountered: