diff --git a/client/src/components/vbox.component.jsx b/client/src/components/vbox.component.jsx index da92fa0c..6768cde6 100644 --- a/client/src/components/vbox.component.jsx +++ b/client/src/components/vbox.component.jsx @@ -192,6 +192,7 @@ function Vbox(args) { function onClick(e) { e.stopPropagation(); + setCombiner([]); if (selected) return clearVboxSelected(); return setVboxSelected([group, index]); } @@ -204,6 +205,7 @@ function Vbox(args) { class={classes} onMouseOver={e => vboxHover(e, v)} onMouseDown={onClick} + onClick={e => e.stopPropagation()} onDblClick={onDblClick} > {shapes[v]()} @@ -214,6 +216,7 @@ function Vbox(args) { @@ -251,32 +256,6 @@ function Vbox(args) { // // INVENTORY // - - // const boundTds = range(0, 9).map(i => { - // const value = vbox.bound[i]; - // if (combiner.indexOf(i) > -1) { - // return ( - // - //   - // - // ); - // } - - // const highlighted = value && vboxHighlight.includes(value); - - // return ( - // vboxHover(e, value)} - // onMouseDown={e => boundClick(e, i, highlighted) }> - // {convertItem(value)} - // - // ); - // }); - - function reclaimClick(e) { e.stopPropagation(); return setReclaiming(!reclaiming); @@ -292,6 +271,7 @@ function Vbox(args) { } function onClick(e) { + if (vboxSelecting) clearVboxSelected(); if (reclaiming) return sendVboxReclaim(i); const combinerIndex = combiner.indexOf(i); @@ -310,6 +290,7 @@ function Vbox(args) { @@ -320,6 +301,7 @@ function Vbox(args) { @@ -346,6 +328,7 @@ function Vbox(args) { class='vbox-btn' disabled={combiner.length !== 3} onMouseOver={e => hoverInfo(e, 'refine')} + onClick={e => e.stopPropagation()} onMouseDown={() => sendVboxCombine()}> {text} @@ -364,6 +347,7 @@ function Vbox(args) { return (
e.stopPropagation()} style={vboxSelecting || itemUnequip.length ? { cursor: 'pointer' } : null} onMouseOver={e => hoverInfo(e, 'inventory')}>
@@ -371,6 +355,7 @@ function Vbox(args) {