mirror of
https://github.com/kevinveenbirkenbach/roulette-wheel.git
synced 2024-11-21 17:51:05 +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) {
|
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user