mirror of https://github.com/kcal-app/kcal.git
Correct target for recipe step remove
This commit is contained in:
parent
4790d37e37
commit
94678cfa75
|
|
@ -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());
|
||||
}
|
||||
</script>
|
||||
@endpush
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
</svg>
|
||||
</div>
|
||||
<x-inputs.textarea class="block mt-1 w-full" name="steps[step][]" :value="$step_default ?? null" />
|
||||
<x-inputs.icon-button type="button" color="red" x-on:click="$event.target.parentNode.remove();">
|
||||
<x-inputs.icon-button type="button" color="red" x-on:click="$event.target.parentNode.parentNode.remove();">
|
||||
<svg class="h-8 w-8 pointer-events-none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor">
|
||||
<path fill-rule="evenodd" d="M9 2a1 1 0 00-.894.553L7.382 4H4a1 1 0 000 2v10a2 2 0 002 2h8a2 2 0 002-2V6a1 1 0 100-2h-3.382l-.724-1.447A1 1 0 0011 2H9zM7 8a1 1 0 012 0v6a1 1 0 11-2 0V8zm5-1a1 1 0 00-1 1v6a1 1 0 102 0V8a1 1 0 00-1-1z" clip-rule="evenodd" />
|
||||
</svg>
|
||||
|
|
|
|||
Loading…
Reference in New Issue