1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-24 01:08:27 +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 (
<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">
<span className="label">{ dev.instanceLabel }</span>
<span className="status">{ deviceStatus }</span>
</div>
<div className="forget-button" onMouseDown={ (event) => {
<div className="forget-button" onClick={ (event) => {
event.stopPropagation();
event.preventDefault();
this.onDeviceMenuClick({ type: 'forget', label: ''}, dev);