Skip to content

Commit

Permalink
image placeholder fix (#6225)
Browse files Browse the repository at this point in the history
Co-authored-by: OlgaLarina <olga.larina.dev@gmail.com>
  • Loading branch information
OlgaLarina and OlgaLarina committed May 19, 2023
1 parent 85715c3 commit 4929e28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/survey-angular-ui/src/questions/image.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
[attr.width]="model.renderedWidth"
[attr.height]="model.renderedHeight"
[style]="{ objectFit: model.imageFit }"
(loadedmetadata)="model.onLoadHandler()"
(load)="model.onLoadHandler()"
(error)="model.onErrorHandler()"
/><video
controls
Expand All @@ -28,7 +28,7 @@
[attr.height]="model.renderedHeight"
[style]="{ objectFit: model.imageFit }"
></iframe>
<div *ngIf="!model.imageLink || model.contentNotLoaded" [class]="model.cssClasses.noImage">
<div *ngIf="!model.locImageLink.renderedHtml || model.contentNotLoaded" [class]="model.cssClasses.noImage">
<svg [iconName]="model.cssClasses.noImageSvgIconId" [size]="48" sv-ng-svg-icon></svg>
</div>
</div>

0 comments on commit 4929e28

Please sign in to comment.