Skip to content

Commit 7211906

Browse files
committed
fix: ensure jquery tooltip is displayed correctly
Move jquery tooltip logic to the buildRecipeOperation function, so it is called regardless of whether the recipe is loaded from the url (which already worked correctly) or by dropping ingredients (which wasn't working before)
1 parent 9d9cced commit 7211906

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/web/waiters/RecipeWaiter.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,8 @@ class RecipeWaiter {
417417
el.classList.add("flow-control-op");
418418
}
419419

420+
$(el).find("[data-toggle='tooltip']").tooltip();
421+
420422
// Disable auto-bake if this is a manual op
421423
if (op.manualBake && this.app.autoBake_) {
422424
this.manager.controls.setAutoBake(false);
@@ -442,8 +444,6 @@ class RecipeWaiter {
442444
this.buildRecipeOperation(item);
443445
document.getElementById("rec-list").appendChild(item);
444446

445-
$(item).find("[data-toggle='tooltip']").tooltip();
446-
447447
item.dispatchEvent(this.manager.operationadd);
448448
return item;
449449
}

0 commit comments

Comments
 (0)