1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-28 03:08:30 +00:00

select device onClick instead of onMouseDown

This commit is contained in:
Szymon Lesisz 2018-05-11 15:41:14 +02:00
parent 9c475e4005
commit ec97e078b7

View File

@ -196,12 +196,12 @@ export class DeviceDropdown extends Component<Props> {
} }
return ( return (
<div key={index} className={ css } onMouseDown={ () => this.props.onSelectDevice(dev) } onTouchStart={ () => this.props.onSelectDevice(dev) } > <div key={index} className={ css } onClick={ () => this.props.onSelectDevice(dev) } >
<div className="label-container"> <div className="label-container">
<span className="label">{ dev.instanceLabel }</span> <span className="label">{ dev.instanceLabel }</span>
<span className="status">{ deviceStatus }</span> <span className="status">{ deviceStatus }</span>
</div> </div>
<div className="forget-button" onMouseDown={ (event) => { <div className="forget-button" onClick={ (event) => {
event.stopPropagation(); event.stopPropagation();
event.preventDefault(); event.preventDefault();
this.onDeviceMenuClick({ type: 'forget', label: ''}, dev); this.onDeviceMenuClick({ type: 'forget', label: ''}, dev);