Skip to content

Commit e601fd8

Browse files
committed
fix(pat tooltip): Initialize Patterns directly after getting content.
This fixes a problem where onMount was initializing Patterns before get_content returned and inserted the content.
1 parent eea7242 commit e601fd8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/pat/tooltip/tooltip.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,10 @@ export default Base.extend({
301301

302302
if (this.options.source === "ajax") {
303303
await this._get_content();
304+
// Also initialize content.
305+
// Due to asynchronous ``_onShow`` the content might not be
306+
// available when ``_onMount``, which does also a ``_initialize_content``.
307+
this._initialize_content();
304308
}
305309
},
306310

0 commit comments

Comments
 (0)