mirror of
				https://github.com/kevinveenbirkenbach/roulette-wheel.git
				synced 2025-11-03 18:47:59 +00:00 
			
		
		
		
	clear item name input after add
This commit is contained in:
		@@ -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);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user