We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 899a539 commit 9120ac3Copy full SHA for 9120ac3
src/lib/decorators.ts
@@ -259,7 +259,9 @@ export function asyncQuery(selector: string) {
259
await this.updateComplete;
260
const el = this.renderRoot.querySelector(selector);
261
// if this is a LitElement, then await updateComplete
262
- await (el && (el as LitElement).updateComplete);
+ if (el) {
263
+ await (el as LitElement).updateComplete;
264
+ }
265
return el;
266
},
267
enumerable: true,
0 commit comments