diff --git a/src/ItemList.js b/src/ItemList.js index d38bf8b..78c93c8 100644 --- a/src/ItemList.js +++ b/src/ItemList.js @@ -45,8 +45,8 @@ export function Item({ item, itemNameId, outfitState, dispatchToOutfit }) { variant="ghost" color="gray.400" onClick={(e) => { - e.stopPropagation(); dispatchToOutfit({ type: "removeItem", itemId: item.id }); + e.preventDefault(); }} opacity="0" transitionProperty="opacity color" diff --git a/src/SearchPanel.js b/src/SearchPanel.js index 9ef441a..695725e 100644 --- a/src/SearchPanel.js +++ b/src/SearchPanel.js @@ -196,7 +196,6 @@ function SearchResults({ } }; - console.log(firstSearchResultRef); return ( @@ -211,7 +210,6 @@ function SearchResults({ ref={index === 0 ? firstSearchResultRef : null} onChange={onChange} onKeyDown={(e) => { - console.log(e.key); if (e.key === "ArrowUp") { goToPrevItem(e); } else if (e.key === "ArrowDown") { diff --git a/src/SpeciesColorPicker.js b/src/SpeciesColorPicker.js index bd5b887..5358ad7 100644 --- a/src/SpeciesColorPicker.js +++ b/src/SpeciesColorPicker.js @@ -74,7 +74,6 @@ function SpeciesColorPicker({ if (allValidSpeciesColorPairs.has(pair)) { dispatchToOutfit({ type: "changeColor", colorId: e.target.value }); } else { - console.log(pair, Array.from(allValidSpeciesColorPairs)); const species = allSpecies.find((s) => s.id === speciesId); const color = allColors.find((c) => c.id === colorId); toast({ @@ -91,7 +90,6 @@ function SpeciesColorPicker({ if (allValidSpeciesColorPairs.has(pair)) { dispatchToOutfit({ type: "changeSpecies", speciesId: e.target.value }); } else { - console.log(pair, Array.from(allValidSpeciesColorPairs)); const species = allSpecies.find((s) => s.id === speciesId); const color = allColors.find((c) => c.id === colorId); toast({