Skip to content

Commit 4c02b94

Browse files
authored
fix(avatar): background url broken when scr string contains ( or ) (#15175)
1 parent 88995e0 commit 4c02b94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects/igniteui-angular/src/lib/avatar/avatar.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ export class IgxAvatarComponent implements OnInit {
341341
* @internal
342342
*/
343343
public getSrcUrl() {
344-
return `url(${this.src})`;
344+
return `url("${this.src}")`;
345345
}
346346

347347
/** @hidden @internal */

0 commit comments

Comments
 (0)