Skip to content

Commit

Permalink
Merge branch 'master' into rkaraivanov/keep-a-changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
rkaraivanov committed Nov 22, 2021
2 parents 929b26b + 1d6c0fe commit e2b125a
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/components/avatar/avatar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { html, LitElement } from 'lit';
import { property, state } from 'lit/decorators.js';
import { classMap } from 'lit/directives/class-map.js';
import { ifDefined } from 'lit/directives/if-defined.js';
import { watch } from '../common/decorators/watch.js';
import { SizableMixin } from '../common/mixins/sizable.js';
import { styles } from './avatar.material.css';

Expand Down Expand Up @@ -62,6 +63,11 @@ export default class IgcAvatarComponent extends SizableMixin(LitElement) {
this.size = 'small';
}

@watch('src')
protected handleErrorState() {
this.hasError = false;
}

protected render() {
return html`
<div
Expand Down Expand Up @@ -89,11 +95,6 @@ export default class IgcAvatarComponent extends SizableMixin(LitElement) {
}
}

// export const avatarDefinition: IgcComponentDefinition = {
// tag: 'igc-avatar',
// component: IgcAvatarComponent,
// };

declare global {
interface HTMLElementTagNameMap {
'igc-avatar': IgcAvatarComponent;
Expand Down

0 comments on commit e2b125a

Please sign in to comment.