diff --git a/lib/ListExtender.js b/lib/ListExtender.js index 3f2d7a8..f37cbf4 100644 --- a/lib/ListExtender.js +++ b/lib/ListExtender.js @@ -233,6 +233,9 @@ if (canRemove(input.target, thing) && thing.listSize > 1) { thing.element.removeChild(input.target.parentElement); thing.listSize--; + thing.element.childNodes.forEach((e, index) => { + e.setAttribute("key", index + 1); + }); } else if (validate(input.target) && customChecks(input.target, thing)) { turnToList(input.target, thing); }