Review fixes

Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
Émile Ré
2026-05-07 11:52:00 +04:00
parent 9e21f8fb08
commit 72fa79629f
12 changed files with 71 additions and 12 deletions

View File

@@ -38,7 +38,11 @@ export class ProboBanner extends ProboElement {
if (this.root) {
this.root.addEventListener("probo-state", this.onStateChange);
this.root.addEventListener("probo-ready", this.onReady, { once: true });
try {
this.validate(this.root.bannerConfig);
} catch {
this.root.addEventListener("probo-ready", this.onReady, { once: true });
}
if (this.root.state === "banner") {
this.hidden = false;
}