openculinary / frontend

The RecipeRadar Frontend is a recipe search and meal planning application
GNU Affero General Public License v3.0
13 stars 2 forks source link

Meal planner: after dragging a recipe to the calendar, removing the entire recipe is not possible #157

Closed jayaddison closed 4 years ago

jayaddison commented 4 years ago

Describe the bug The meal planner view contains a list of unique planned recipes, and below that a calendar displaying possible dates on which those recipes can be scheduled - potentially multiple times each.

It should be possible to completely remove a recipe at any point by clicking on the 'trash can' icon next to the recipe name at the top of the page. This should remove it and all entries in the calendar where it appears.

To Reproduce Steps to reproduce the behavior:

  1. Perform a recipe search and add a recipe to the meal plan
  2. Navigate to the meal planner view
  3. Drag the recipe to a calendar day row
  4. Attempt to delete the recipe via the trash can icon next to the recipe name (above the calendar)
  5. Observe that nothing happens

Expected behavior The recipe should be deleted from the meal plan and calendar.

jayaddison commented 4 years ago

Note that this behaviour is not reproducible after refreshing the page, which leads me to believe that it may be a bug that occurs during handling of the DOM elements during drag & drop.