mirror of
https://github.com/trezor/trezor-wallet
synced 2024-11-24 17:28:10 +00:00
select device onClick instead of onMouseDown
This commit is contained in:
parent
9c475e4005
commit
ec97e078b7
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user