fix id not being reset on new traits
This commit is contained in:
parent
f73f0801d7
commit
ab0b6efccc
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user