diff --git a/src/components/CustomZap/CustomZap.tsx b/src/components/CustomZap/CustomZap.tsx index 0e89d2d..ecd0004 100644 --- a/src/components/CustomZap/CustomZap.tsx +++ b/src/components/CustomZap/CustomZap.tsx @@ -141,9 +141,30 @@ const CustomZap: Component<{ props.onFail(selectedValue()); }; + let md = false; + return ( - props.onCancel({ amount: 0, message: '' })}> -
+ { + if (md) { + md = false; + } + else { + props.onCancel({ amount: 0, message: '' }); + } + }} + > +
md = false} + onMouseDown={() => md = true} + onClick={(e: MouseEvent) => { + e.preventDefault(); + e.stopPropagation(); + }} + >