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
1 changed files with 2 additions and 0 deletions

View File

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