From 94678cfa757e5f7e28793175d53c7378f2386342 Mon Sep 17 00:00:00 2001 From: "Christopher C. Wells" Date: Fri, 26 Feb 2021 05:28:56 -0800 Subject: [PATCH] Correct target for recipe step remove --- resources/views/recipes/edit.blade.php | 2 +- resources/views/recipes/partials/step-input.blade.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/views/recipes/edit.blade.php b/resources/views/recipes/edit.blade.php index 2cdd90d..ecabb13 100644 --- a/resources/views/recipes/edit.blade.php +++ b/resources/views/recipes/edit.blade.php @@ -158,7 +158,7 @@ * Removes any hidden templates before form submit. */ let removeTemplates = () => { - document.querySelector(':scope .entry-template').remove(); + document.querySelectorAll(':scope .entry-template').forEach(e => e.remove()); } @endpush diff --git a/resources/views/recipes/partials/step-input.blade.php b/resources/views/recipes/partials/step-input.blade.php index be22974..736afa4 100644 --- a/resources/views/recipes/partials/step-input.blade.php +++ b/resources/views/recipes/partials/step-input.blade.php @@ -7,7 +7,7 @@ - +