Skip to content

Commit ac3985a

Browse files
authored
fix(avatar): background url broken when scr string contains ( or ) (#15176)
1 parent e372a9e commit ac3985a

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
@@ -342,7 +342,7 @@ export class IgxAvatarComponent implements OnInit {
342342
* @internal
343343
*/
344344
public getSrcUrl() {
345-
return `url(${this.src})`;
345+
return `url("${this.src}")`;
346346
}
347347

348348
/** @hidden @internal */

0 commit comments

Comments
 (0)