Skip to content

Commit

Permalink
fix(pb-facs-link): emit-on-load should also wait for pb-facsimile/pb-…
Browse files Browse the repository at this point in the history
…tify to be available
  • Loading branch information
wolfgangmm committed May 18, 2024
1 parent b8bae11 commit b16730a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pb-facs-link.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export class PbFacsLink extends pbMixin(LitElement) {
const link = this.shadowRoot.querySelector('a');
link.addEventListener(this.trigger, this._linkListener.bind(this));
if (this.emitOnLoad) {
this._trigger();
this.wait(() => { this._trigger(); });
}
}

Expand Down

0 comments on commit b16730a

Please sign in to comment.