Skip to content
This repository was archived by the owner on Dec 14, 2021. It is now read-only.

Commit 4369ffc

Browse files
Merge pull request #23 from mendix/fix/wait-for-widget
Fix initialising before widgets be visible
2 parents 26cb9fe + 4ba5890 commit 4369ffc

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "BootstrapTooltip",
3-
"version": "3.2.0",
3+
"version": "3.2.1",
44
"description": "This widget adds a tooltip to an user defined field, containing for example help text or extra information.",
55
"license": "Apache-2.0",
66
"author": "Mendix Technology B.V.",

src/BootstrapTooltip.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ export default declare("BootstrapTooltip.widget.BootstrapTooltip", [_WidgetBase,
3030
if (this.tooltipMessageMicroflow) {
3131
this._execMf(this.tooltipMessageMicroflow, obj ? obj.getGuid() : null, message => {
3232
this._tooltipText = message;
33-
this._initializeTooltip(callback);
33+
setTimeout(() => this._initializeTooltip(callback), 10);
3434
});
3535
} else {
3636
if (this.tooltipMessageString) {
3737
this._tooltipText = this.tooltipMessageString;
3838
}
39-
this._initializeTooltip(callback);
39+
setTimeout(() => this._initializeTooltip(callback), 10);
4040
}
4141
},
4242

@@ -59,6 +59,7 @@ export default declare("BootstrapTooltip.widget.BootstrapTooltip", [_WidgetBase,
5959
this.domNode.id +
6060
"')"
6161
);
62+
cb();
6263
return;
6364
}
6465

0 commit comments

Comments
 (0)