clear item name input after add

This commit is contained in:
p-wojt 2022-01-14 19:42:03 +01:00
parent 0f707a8769
commit 918536704f

View File

@ -79,6 +79,8 @@ function addRemoveItem() {
if (name) { if (name) {
const id = IdPool.getAnId(); const id = IdPool.getAnId();
if (id) { if (id) {
inputEl.value = "";
const color = avaliableRGBs[id % avaliableRGBs.length]; const color = avaliableRGBs[id % avaliableRGBs.length];
const item = new Item(id, name, color); const item = new Item(id, name, color);
const menuItem = new MenuItem(id, name, color); const menuItem = new MenuItem(id, name, color);