mirror of
https://github.com/kevinveenbirkenbach/roulette-wheel.git
synced 2024-11-01 00:53:11 +01:00
clear item name input after add
This commit is contained in:
parent
0f707a8769
commit
918536704f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user