fix id not being reset on new traits

This commit is contained in:
Thomas Rubini 2023-03-18 18:34:31 +01:00
parent f73f0801d7
commit ab0b6efccc
No known key found for this signature in database
GPG Key ID: C7D287C8C1CAC373

View File

@ -18,6 +18,7 @@
function addNewInput(){
let newTrait = traits.lastElementChild.cloneNode(true);
newTrait.id = "";
newTrait.querySelector(".name_input").value = "";
newTrait.querySelector(".desc_input").value = "";
traits.appendChild(newTrait);