update when family/variant changes; fixes #438

This commit is contained in:
Cory LaViska
2024-05-21 16:25:07 -04:00
parent 0abd0dec5f
commit f3cbec4e96

View File

@@ -165,7 +165,7 @@ export default class WaIcon extends WebAwesomeElement {
}
}
@watch(['name', 'src', 'library'])
@watch(['family', 'name', 'library', 'variant', 'src'])
async setIcon() {
const { url, fromLibrary } = this.getIconSource();
const library = fromLibrary ? getIconLibrary(this.library) : undefined;