feat: implement recipe card update functionality after modal edits

This commit is contained in:
Will Miao
2025-05-05 23:17:58 +08:00
parent e376a45dea
commit 5fad936b27
3 changed files with 68 additions and 45 deletions

View File

@@ -7,6 +7,9 @@ class RecipeCard {
this.recipe = recipe;
this.clickHandler = clickHandler;
this.element = this.createCardElement();
// Store reference to this instance on the DOM element for updates
this.element._recipeCardInstance = this;
}
createCardElement() {