fix(wa-icon): add waitUntilFirstUpdate: true option to the setIcon() watch decorator (#1738)

This commit is contained in:
Dimitri
2025-11-17 20:49:32 +01:00
committed by GitHub
parent 17fd3d238c
commit 634828d89a

View File

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