Skip to content

Commit ce123dc

Browse files
authored
fix(load): fire load event only when image is done loading (#200)
closes #195
1 parent d32f351 commit ce123dc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/components/img-loader.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,8 @@ export class ImgLoaderComponent implements OnInit {
227227
`url("${imageUrl || this.fallbackUrl}")`,
228228
);
229229
}
230-
231-
this.load.emit(this);
230+
if(stopLoading) {
231+
this.load.emit(this);
232+
}
232233
}
233234
}

0 commit comments

Comments
 (0)