Эх сурвалжийг харах

Correction du bug de click sur le bouton deleteLink

Sangfroid 8 сар өмнө
parent
commit
b145bdd4b0

+ 1 - 0
assets/js/addCollectionVanilla.js

@@ -43,6 +43,7 @@ import { autocomplete } from './autocomplete'
     function addDeleteLink(item) {
         const input = item.querySelector('input') ?? item.querySelector('select');
         const deleteLink = document.createElement('button');
+        deleteLink.type = 'button';
         deleteLink.className = 'btn btn-outline-secondary';
         const i = document.createElement('i');
         i.className = 'fa fa-trash fa-lg text-danger';