Skip to content

Commit

Permalink
Empty renderbackgroundimage on empty path fix #6438 (#6452)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewtelnov authored Jun 29, 2023
1 parent 0d7f156 commit a7d02c7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/survey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1995,8 +1995,7 @@ export class SurveyModel extends SurveyElementCore
@property() renderBackgroundImage: string;
private updateRenderBackgroundImage(): void {
const path = this.getLocalizableString("backgroundImage").renderedHtml;
if(!path) return;
this.renderBackgroundImage = ["url(", path, ")"].join("");
this.renderBackgroundImage = !!path ? ["url(", path, ")"].join("") : "";
}
@property() backgroundImageFit: string;
/**
Expand Down

0 comments on commit a7d02c7

Please sign in to comment.